package formatter

import "github.com/open-policy-agent/opa/internal/gqlparser/formatter"

Index

Types

type Formatter

type Formatter interface {
	FormatSchema(schema *ast.Schema)
	FormatSchemaDocument(doc *ast.SchemaDocument)
	FormatQueryDocument(doc *ast.QueryDocument)
}

func NewFormatter

func NewFormatter(w io.Writer, options ...FormatterOption) Formatter

type FormatterOption

type FormatterOption func(*formatter)

func WithIndent

func WithIndent(indent string) FormatterOption

Source Files

formatter.go

Version
v0.46.2
Published
Dec 7, 2022
Platform
js/wasm
Imports
5 packages
Last checked
1 minute ago

Tools for package owners.