-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
Just like the go package found in Go's standard library, a printer package would be very useful. Both for debugging/testing and for use in gqlc/gqlc.
API
type Config struct {
Indent string
UseComma bool
Comments bool
}
// Fprint "pretty prints" the an AST node to output
func (Config) Fprint(output io.Writer, fset *token.DocSet, node interface{}) error
// FromIntrospection "pretty prints" introspection query results to GraphQL IDL.
func (Config) FromIntrospection(output io.Writer, fset *token.DocSet, src io.Reader) errorMetadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request