templates

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Go name linting. Copied from https://github.com/golang/lint/blob/master/lint.go#L719

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enum

func Enum(funcs template.FuncMap) *template.Template

func GoTemplateFuncs

func GoTemplateFuncs(
	ctx context.Context,
	schema *introspection.Schema,
	module *modules.Config,
	pkg *packages.Package,
	fset *token.FileSet,
) template.FuncMap
func Header(funcs template.FuncMap) *template.Template

func Input

func Input(funcs template.FuncMap) *template.Template

func Module

func Module(funcs template.FuncMap) *template.Template

func Object

func Object(funcs template.FuncMap) *template.Template

func Scalar

func Scalar(funcs template.FuncMap) *template.Template

Types

type FormatTypeFunc

type FormatTypeFunc struct{}

FormatTypeFunc is an implementation of generator.FormatTypeFuncs interface to format GraphQL type into Golang.

func (*FormatTypeFunc) FormatKindEnum

func (f *FormatTypeFunc) FormatKindEnum(representation string, refName string) string

func (*FormatTypeFunc) FormatKindInputObject

func (f *FormatTypeFunc) FormatKindInputObject(representation string, refName string, input bool) string

func (*FormatTypeFunc) FormatKindList

func (f *FormatTypeFunc) FormatKindList(representation string) string

func (*FormatTypeFunc) FormatKindObject

func (f *FormatTypeFunc) FormatKindObject(representation string, refName string, input bool) string

func (*FormatTypeFunc) FormatKindScalarBoolean

func (f *FormatTypeFunc) FormatKindScalarBoolean(representation string) string

func (*FormatTypeFunc) FormatKindScalarDefault

func (f *FormatTypeFunc) FormatKindScalarDefault(representation string, refName string, input bool) string

func (*FormatTypeFunc) FormatKindScalarFloat

func (f *FormatTypeFunc) FormatKindScalarFloat(representation string) string

func (*FormatTypeFunc) FormatKindScalarInt

func (f *FormatTypeFunc) FormatKindScalarInt(representation string) string

func (*FormatTypeFunc) FormatKindScalarString

func (f *FormatTypeFunc) FormatKindScalarString(representation string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳