format

package
v0.2.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferedFormatter added in v0.1.7

type BufferedFormatter struct {
	*Formatter
}

func NewBufferedFormatter added in v0.1.7

func NewBufferedFormatter() *BufferedFormatter

func NewDebugBufferedFormatter added in v0.1.7

func NewDebugBufferedFormatter() *BufferedFormatter

func (*BufferedFormatter) Copy added in v0.1.7

func (*BufferedFormatter) FormatSelectionSet added in v0.1.7

func (f *BufferedFormatter) FormatSelectionSet(sets ast.SelectionSet) string

func (*BufferedFormatter) WithIndent added in v0.1.7

func (f *BufferedFormatter) WithIndent(indent string) *BufferedFormatter

func (*BufferedFormatter) WithNewLine added in v0.1.7

func (f *BufferedFormatter) WithNewLine(newLine string) *BufferedFormatter

func (*BufferedFormatter) WithOperationName added in v0.1.7

func (f *BufferedFormatter) WithOperationName(operationName string) *BufferedFormatter

func (*BufferedFormatter) WithOperationType added in v0.1.8

func (f *BufferedFormatter) WithOperationType(operationType ast.Operation) *BufferedFormatter

func (*BufferedFormatter) WithSchema added in v0.1.7

func (f *BufferedFormatter) WithSchema(schema *ast.Schema) *BufferedFormatter

type Formatter

type Formatter struct {
	// contains filtered or unexported fields
}

func NewFormatter

func NewFormatter() *Formatter

func (*Formatter) Copy added in v0.1.7

func (f *Formatter) Copy() *Formatter

func (*Formatter) FormatSelectionSet

func (f *Formatter) FormatSelectionSet(sets ast.SelectionSet)

func (*Formatter) WithIndent added in v0.1.7

func (f *Formatter) WithIndent(indent string) *Formatter

func (*Formatter) WithNewLine added in v0.1.7

func (f *Formatter) WithNewLine(newLine string) *Formatter

func (*Formatter) WithOperationName added in v0.1.7

func (f *Formatter) WithOperationName(operationName string) *Formatter

func (*Formatter) WithOperationType added in v0.1.8

func (f *Formatter) WithOperationType(operationType ast.Operation) *Formatter

func (*Formatter) WithSchema added in v0.1.7

func (f *Formatter) WithSchema(schema *ast.Schema) *Formatter

func (*Formatter) WithWriter added in v0.1.7

func (f *Formatter) WithWriter(w io.Writer) *Formatter

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL