restgen

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DbgPrintf added in v0.0.9

func DbgPrintf(format string, a ...interface{})

func DbgPrintln

func DbgPrintln(a ...interface{})

func DumpObject

func DumpObject(objects *codegen.Objects, object *codegen.Object)

func GetMethod

func GetMethod(field *codegen.Field, defaultMethod string) string

func GetSelection

func GetSelection(objects *codegen.Objects, field *codegen.Field, refer bool) string

func GetURL

func GetURL(field *codegen.Field) string

func New

func New(filename string, typename string) plugin.Plugin

func ShouldHide

func ShouldHide(directive *ast.Directive) bool

_$_ [Using Functions Inside Go Templates - Calhoun.io](https://www.calhoun.io/intro-to-templates-p3-functions/# ) | ClippedOn=2021-08-10T09:45:06.709Z

func Unused_GetArguments

func Unused_GetArguments(objects *codegen.Objects, field *codegen.Field) string

func Unused_GetInputs

func Unused_GetInputs(data *codegen.Data) string

Types

type Plugin

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

func (*Plugin) GenerateCode

func (m *Plugin) GenerateCode(data *codegen.Data) error

func (*Plugin) MutateConfig

func (m *Plugin) MutateConfig(cfg *config.Config) error

func (*Plugin) Name

func (m *Plugin) Name() string

type ResolverBuild

type ResolverBuild struct {
	*codegen.Data

	TypeName string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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