Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultIndent = " "
)
Variables ¶
This section is empty.
Functions ¶
func FormatQuery ¶
func FormatQueryMinified ¶
func FormatQueryWithIndent ¶ added in v1.1.0
Types ¶
type Formatter ¶
type Formatter interface {
FormatQueryDocument(doc *ast.QueryDocument)
}
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option configures the Formatter.
func WithIndent ¶ added in v1.1.0
WithIndent returns an Option which sets the tab string to use.
func WithMinification ¶
func WithMinification() Option
WithMinification returns an Option which sets minified output.
Click to show internal directories.
Click to hide internal directories.