package jen

Import Path
	github.com/dave/jennifer/jen (on go.dev)

Dependency Relation
	imports 11 packages, and imported by one package


Package-Level Type Names (total 6)
/* sort by: | */
Code represents an item of code that can be rendered. Dict File *Group *Statement func Add(code ...Code) *Statement func Append(args ...Code) *Statement func Assert(typ Code) *Statement func Block(statements ...Code) *Statement func Call(params ...Code) *Statement func Cap(v Code) *Statement func Case(cases ...Code) *Statement func Clear(c Code) *Statement func Close(c Code) *Statement func Complex(r Code, i Code) *Statement func Complex(r Code, i Code) *Statement func Copy(dst Code, src Code) *Statement func Copy(dst Code, src Code) *Statement func Custom(options Options, statements ...Code) *Statement func Defs(definitions ...Code) *Statement func Delete(m Code, key Code) *Statement func Delete(m Code, key Code) *Statement func For(conditions ...Code) *Statement func If(conditions ...Code) *Statement func Imag(c Code) *Statement func Index(items ...Code) *Statement func Interface(methods ...Code) *Statement func Len(v Code) *Statement func List(items ...Code) *Statement func Make(args ...Code) *Statement func Map(typ Code) *Statement func Max(args ...Code) *Statement func Min(args ...Code) *Statement func New(typ Code) *Statement func Panic(v Code) *Statement func Params(params ...Code) *Statement func Parens(item Code) *Statement func Print(args ...Code) *Statement func Println(args ...Code) *Statement func Real(c Code) *Statement func Return(results ...Code) *Statement func Struct(fields ...Code) *Statement func Switch(conditions ...Code) *Statement func Types(types ...Code) *Statement func Union(types ...Code) *Statement func Values(values ...Code) *Statement func (*Group).Add(code ...Code) *Statement func (*Group).Append(args ...Code) *Statement func (*Group).Assert(typ Code) *Statement func (*Group).Block(statements ...Code) *Statement func (*Group).Call(params ...Code) *Statement func (*Group).Cap(v Code) *Statement func (*Group).Case(cases ...Code) *Statement func (*Group).Clear(c Code) *Statement func (*Group).Close(c Code) *Statement func (*Group).Complex(r Code, i Code) *Statement func (*Group).Complex(r Code, i Code) *Statement func (*Group).Copy(dst Code, src Code) *Statement func (*Group).Copy(dst Code, src Code) *Statement func (*Group).Custom(options Options, statements ...Code) *Statement func (*Group).Defs(definitions ...Code) *Statement func (*Group).Delete(m Code, key Code) *Statement func (*Group).Delete(m Code, key Code) *Statement func (*Group).For(conditions ...Code) *Statement func (*Group).If(conditions ...Code) *Statement func (*Group).Imag(c Code) *Statement func (*Group).Index(items ...Code) *Statement func (*Group).Interface(methods ...Code) *Statement func (*Group).Len(v Code) *Statement func (*Group).List(items ...Code) *Statement func (*Group).Make(args ...Code) *Statement func (*Group).Map(typ Code) *Statement func (*Group).Max(args ...Code) *Statement func (*Group).Min(args ...Code) *Statement func (*Group).New(typ Code) *Statement func (*Group).Panic(v Code) *Statement func (*Group).Params(params ...Code) *Statement func (*Group).Parens(item Code) *Statement func (*Group).Print(args ...Code) *Statement func (*Group).Println(args ...Code) *Statement func (*Group).Real(c Code) *Statement func (*Group).Return(results ...Code) *Statement func (*Group).Struct(fields ...Code) *Statement func (*Group).Switch(conditions ...Code) *Statement func (*Group).Types(types ...Code) *Statement func (*Group).Union(types ...Code) *Statement func (*Group).Values(values ...Code) *Statement func (*Statement).Add(code ...Code) *Statement func (*Statement).Append(args ...Code) *Statement func (*Statement).Assert(typ Code) *Statement func (*Statement).Block(statements ...Code) *Statement func (*Statement).Call(params ...Code) *Statement func (*Statement).Cap(v Code) *Statement func (*Statement).Case(cases ...Code) *Statement func (*Statement).Clear(c Code) *Statement func (*Statement).Close(c Code) *Statement func (*Statement).Complex(r Code, i Code) *Statement func (*Statement).Complex(r Code, i Code) *Statement func (*Statement).Copy(dst Code, src Code) *Statement func (*Statement).Copy(dst Code, src Code) *Statement func (*Statement).Custom(options Options, statements ...Code) *Statement func (*Statement).Defs(definitions ...Code) *Statement func (*Statement).Delete(m Code, key Code) *Statement func (*Statement).Delete(m Code, key Code) *Statement func (*Statement).For(conditions ...Code) *Statement func (*Statement).If(conditions ...Code) *Statement func (*Statement).Imag(c Code) *Statement func (*Statement).Index(items ...Code) *Statement func (*Statement).Interface(methods ...Code) *Statement func (*Statement).Len(v Code) *Statement func (*Statement).List(items ...Code) *Statement func (*Statement).Make(args ...Code) *Statement func (*Statement).Map(typ Code) *Statement func (*Statement).Max(args ...Code) *Statement func (*Statement).Min(args ...Code) *Statement func (*Statement).New(typ Code) *Statement func (*Statement).Panic(v Code) *Statement func (*Statement).Params(params ...Code) *Statement func (*Statement).Parens(item Code) *Statement func (*Statement).Print(args ...Code) *Statement func (*Statement).Println(args ...Code) *Statement func (*Statement).Real(c Code) *Statement func (*Statement).Return(results ...Code) *Statement func (*Statement).Struct(fields ...Code) *Statement func (*Statement).Switch(conditions ...Code) *Statement func (*Statement).Types(types ...Code) *Statement func (*Statement).Union(types ...Code) *Statement func (*Statement).Values(values ...Code) *Statement
Dict renders as key/value pairs. Use with Values for map or composite literals. Dict : Code func DictFunc(f func(Dict)) Dict
File represents a single source file. Package imports are managed automatically by File. CanonicalPath adds a canonical import path annotation to the package clause. Group *Group NoFormat can be set to true to disable formatting of the generated source. This may be useful when performance is critical, and readable code is not required. If you're worried about generated package aliases conflicting with local variable names, you can set a prefix here. Package foo becomes {prefix}_foo. Add appends the provided items to the statement. Anon adds an anonymous import. Any renders the any identifier. Append renders the append built-in function. AppendFunc renders the append built-in function. Assert renders a period followed by a single item enclosed by parenthesis. Use for type assertions. Block renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements. BlockFunc renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements. Bool renders the bool identifier. Break renders the break keyword. Byte renders the byte identifier. Call renders a comma separated list enclosed by parenthesis. Use for function calls. CallFunc renders a comma separated list enclosed by parenthesis. Use for function calls. Cap renders the cap built-in function. Case renders the keyword followed by a comma separated list. CaseFunc renders the keyword followed by a comma separated list. CgoPreamble adds a cgo preamble comment that is rendered directly before the "C" pseudo-package import. Chan renders the chan keyword. Clear renders the clear built-in function. Close renders the close built-in function. Comment adds a comment. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly. Commentf adds a comment, using a format string and a list of parameters. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly. Comparable renders the comparable identifier. Complex renders the complex built-in function. Complex128 renders the complex128 identifier. Complex64 renders the complex64 identifier. Const renders the const keyword. Continue renders the continue keyword. Copy renders the copy built-in function. Custom renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator. CustomFunc renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator. Default renders the default keyword. Defer renders the defer keyword. Defs renders a statement list enclosed in parenthesis. Use for definition lists. DefsFunc renders a statement list enclosed in parenthesis. Use for definition lists. Delete renders the delete built-in function. Do calls the provided function with the statement as a parameter. Use for embedding logic. Dot renders a period followed by an identifier. Use for fields and selectors. Else renders the else keyword. Empty adds an empty item. Empty items render nothing but are followed by a separator in lists. Err renders the err identifier. Error renders the error identifier. Fallthrough renders the fallthrough keyword. False renders the false identifier. Float32 renders the float32 identifier. Float64 renders the float64 identifier. For renders the keyword followed by a semicolon separated list. ForFunc renders the keyword followed by a semicolon separated list. Func renders the func keyword. Go renders the go keyword. GoString renders the File for testing. Any error will cause a panic. Goto renders the goto keyword. HeaderComment adds a comment to the top of the file, above any package comments. A blank line is rendered below the header comments, ensuring header comments are not included in the package doc. Id renders an identifier. If renders the keyword followed by a semicolon separated list. IfFunc renders the keyword followed by a semicolon separated list. Imag renders the imag built-in function. ImportAlias provides the alias for a package path that should be used in the import block. A period can be used to force a dot-import. ImportName provides the package name for a path. If specified, the alias will be omitted from the import block. This is optional. If not specified, a sensible package name is used based on the path and this is added as an alias in the import block. ImportNames allows multiple names to be imported as a map. Use the [gennames](gennames) command to automatically generate a go file containing a map of a selection of package names. Index renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions. IndexFunc renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions. Int renders the int identifier. Int16 renders the int16 identifier. Int32 renders the int32 identifier. Int64 renders the int64 identifier. Int8 renders the int8 identifier. Interface renders the keyword followed by a method list enclosed by curly braces. InterfaceFunc renders the keyword followed by a method list enclosed by curly braces. Iota renders the iota identifier. Len renders the len built-in function. Line inserts a blank line. List renders a comma separated list. Use for multiple return functions. ListFunc renders a comma separated list. Use for multiple return functions. Lit renders a literal. Lit supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Passing any other type will panic. LitByte renders a byte literal. LitByteFunc renders a byte literal. LitByteFunc generates the value to render by executing the provided function. LitFunc renders a literal. LitFunc generates the value to render by executing the provided function. LitFunc supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Returning any other type will panic. LitRune renders a rune literal. LitRuneFunc renders a rune literal. LitRuneFunc generates the value to render by executing the provided function. Make renders the make built-in function. The final parameter of the make function is optional, so it is represented by a variadic parameter list. Map renders the keyword followed by a single item enclosed by square brackets. Use for map definitions. Max renders the max built-in function. MaxFunc renders the max built-in function. Min renders the min built-in function. MinFunc renders the min built-in function. New renders the new built-in function. Nil renders the nil identifier. Null adds a null item. Null items render nothing and are not followed by a separator in lists. Op renders the provided operator / token. PackageComment adds a comment to the top of the file, above the package keyword. Panic renders the panic built-in function. Params renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers. ParamsFunc renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers. Parens renders a single item in parenthesis. Use for type conversion or to specify evaluation order. Print renders the print built-in function. PrintFunc renders the print built-in function. Println renders the println built-in function. PrintlnFunc renders the println built-in function. Qual renders a qualified identifier. Imports are automatically added when used with a File. If the path matches the local path, the package name is omitted. If package names conflict they are automatically renamed. Note that it is not possible to reliably determine the package name given an arbitrary package path, so a sensible name is guessed from the path and added as an alias. The names of all standard library packages are known so these do not need to be aliased. If more control is needed of the aliases, see [File.ImportName](#importname) or [File.ImportAlias](#importalias). Range renders the range keyword. Real renders the real built-in function. Recover renders the recover built-in function. Render renders the file to the provided writer. RenderWithFile renders the Group to the provided writer, using imports from the provided file. Return renders the keyword followed by a comma separated list. ReturnFunc renders the keyword followed by a comma separated list. Rune renders the rune identifier. Save renders the file and saves to the filename provided. Select renders the select keyword. String renders the string identifier. Struct renders the keyword followed by a field list enclosed by curly braces. StructFunc renders the keyword followed by a field list enclosed by curly braces. Switch renders the keyword followed by a semicolon separated list. SwitchFunc renders the keyword followed by a semicolon separated list. Tag renders a struct tag True renders the true identifier. Type renders the type keyword. Types renders a comma separated list enclosed by square brackets. Use for type parameters and constraints. TypesFunc renders a comma separated list enclosed by square brackets. Use for type parameters and constraints. Uint renders the uint identifier. Uint16 renders the uint16 identifier. Uint32 renders the uint32 identifier. Uint64 renders the uint64 identifier. Uint8 renders the uint8 identifier. Uintptr renders the uintptr identifier. Union renders a pipe separated list. Use for union type constraints. UnionFunc renders a pipe separated list. Use for union type constraints. Values renders a comma separated list enclosed by curly braces. Use for slice or composite literals. ValuesFunc renders a comma separated list enclosed by curly braces. Use for slice or composite literals. Var renders the var keyword. File : Code *File : fmt.GoStringer func NewFile(packageName string) *File func NewFilePath(packagePath string) *File func NewFilePathName(packagePath, packageName string) *File func (*Group).RenderWithFile(writer io.Writer, file *File) error func (*Statement).RenderWithFile(writer io.Writer, file *File) error
Group represents a list of Code items, separated by tokens with an optional open and close token. Add appends the provided items to the statement. Any renders the any identifier. Append renders the append built-in function. AppendFunc renders the append built-in function. Assert renders a period followed by a single item enclosed by parenthesis. Use for type assertions. Block renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements. BlockFunc renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements. Bool renders the bool identifier. Break renders the break keyword. Byte renders the byte identifier. Call renders a comma separated list enclosed by parenthesis. Use for function calls. CallFunc renders a comma separated list enclosed by parenthesis. Use for function calls. Cap renders the cap built-in function. Case renders the keyword followed by a comma separated list. CaseFunc renders the keyword followed by a comma separated list. Chan renders the chan keyword. Clear renders the clear built-in function. Close renders the close built-in function. Comment adds a comment. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly. Commentf adds a comment, using a format string and a list of parameters. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly. Comparable renders the comparable identifier. Complex renders the complex built-in function. Complex128 renders the complex128 identifier. Complex64 renders the complex64 identifier. Const renders the const keyword. Continue renders the continue keyword. Copy renders the copy built-in function. Custom renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator. CustomFunc renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator. Default renders the default keyword. Defer renders the defer keyword. Defs renders a statement list enclosed in parenthesis. Use for definition lists. DefsFunc renders a statement list enclosed in parenthesis. Use for definition lists. Delete renders the delete built-in function. Do calls the provided function with the statement as a parameter. Use for embedding logic. Dot renders a period followed by an identifier. Use for fields and selectors. Else renders the else keyword. Empty adds an empty item. Empty items render nothing but are followed by a separator in lists. Err renders the err identifier. Error renders the error identifier. Fallthrough renders the fallthrough keyword. False renders the false identifier. Float32 renders the float32 identifier. Float64 renders the float64 identifier. For renders the keyword followed by a semicolon separated list. ForFunc renders the keyword followed by a semicolon separated list. Func renders the func keyword. Go renders the go keyword. GoString renders the Group for testing. Any error will cause a panic. Goto renders the goto keyword. Id renders an identifier. If renders the keyword followed by a semicolon separated list. IfFunc renders the keyword followed by a semicolon separated list. Imag renders the imag built-in function. Index renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions. IndexFunc renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions. Int renders the int identifier. Int16 renders the int16 identifier. Int32 renders the int32 identifier. Int64 renders the int64 identifier. Int8 renders the int8 identifier. Interface renders the keyword followed by a method list enclosed by curly braces. InterfaceFunc renders the keyword followed by a method list enclosed by curly braces. Iota renders the iota identifier. Len renders the len built-in function. Line inserts a blank line. List renders a comma separated list. Use for multiple return functions. ListFunc renders a comma separated list. Use for multiple return functions. Lit renders a literal. Lit supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Passing any other type will panic. LitByte renders a byte literal. LitByteFunc renders a byte literal. LitByteFunc generates the value to render by executing the provided function. LitFunc renders a literal. LitFunc generates the value to render by executing the provided function. LitFunc supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Returning any other type will panic. LitRune renders a rune literal. LitRuneFunc renders a rune literal. LitRuneFunc generates the value to render by executing the provided function. Make renders the make built-in function. The final parameter of the make function is optional, so it is represented by a variadic parameter list. Map renders the keyword followed by a single item enclosed by square brackets. Use for map definitions. Max renders the max built-in function. MaxFunc renders the max built-in function. Min renders the min built-in function. MinFunc renders the min built-in function. New renders the new built-in function. Nil renders the nil identifier. Null adds a null item. Null items render nothing and are not followed by a separator in lists. Op renders the provided operator / token. Panic renders the panic built-in function. Params renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers. ParamsFunc renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers. Parens renders a single item in parenthesis. Use for type conversion or to specify evaluation order. Print renders the print built-in function. PrintFunc renders the print built-in function. Println renders the println built-in function. PrintlnFunc renders the println built-in function. Qual renders a qualified identifier. Imports are automatically added when used with a File. If the path matches the local path, the package name is omitted. If package names conflict they are automatically renamed. Note that it is not possible to reliably determine the package name given an arbitrary package path, so a sensible name is guessed from the path and added as an alias. The names of all standard library packages are known so these do not need to be aliased. If more control is needed of the aliases, see [File.ImportName](#importname) or [File.ImportAlias](#importalias). Range renders the range keyword. Real renders the real built-in function. Recover renders the recover built-in function. Render renders the Group to the provided writer. RenderWithFile renders the Group to the provided writer, using imports from the provided file. Return renders the keyword followed by a comma separated list. ReturnFunc renders the keyword followed by a comma separated list. Rune renders the rune identifier. Select renders the select keyword. String renders the string identifier. Struct renders the keyword followed by a field list enclosed by curly braces. StructFunc renders the keyword followed by a field list enclosed by curly braces. Switch renders the keyword followed by a semicolon separated list. SwitchFunc renders the keyword followed by a semicolon separated list. Tag renders a struct tag True renders the true identifier. Type renders the type keyword. Types renders a comma separated list enclosed by square brackets. Use for type parameters and constraints. TypesFunc renders a comma separated list enclosed by square brackets. Use for type parameters and constraints. Uint renders the uint identifier. Uint16 renders the uint16 identifier. Uint32 renders the uint32 identifier. Uint64 renders the uint64 identifier. Uint8 renders the uint8 identifier. Uintptr renders the uintptr identifier. Union renders a pipe separated list. Use for union type constraints. UnionFunc renders a pipe separated list. Use for union type constraints. Values renders a comma separated list enclosed by curly braces. Use for slice or composite literals. ValuesFunc renders a comma separated list enclosed by curly braces. Use for slice or composite literals. Var renders the var keyword. *Group : Code *Group : fmt.GoStringer
Options specifies options for the Custom method Close string Multi bool Open string Separator string func Custom(options Options, statements ...Code) *Statement func CustomFunc(options Options, f func(*Group)) *Statement func (*Group).Custom(options Options, statements ...Code) *Statement func (*Group).CustomFunc(options Options, f func(*Group)) *Statement func (*Statement).Custom(options Options, statements ...Code) *Statement func (*Statement).CustomFunc(options Options, f func(*Group)) *Statement
Statement represents a simple list of code items. When rendered the items are separated by spaces. Add appends the provided items to the statement. Any renders the any identifier. Append renders the append built-in function. AppendFunc renders the append built-in function. Assert renders a period followed by a single item enclosed by parenthesis. Use for type assertions. Block renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements. BlockFunc renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements. Bool renders the bool identifier. Break renders the break keyword. Byte renders the byte identifier. Call renders a comma separated list enclosed by parenthesis. Use for function calls. CallFunc renders a comma separated list enclosed by parenthesis. Use for function calls. Cap renders the cap built-in function. Case renders the keyword followed by a comma separated list. CaseFunc renders the keyword followed by a comma separated list. Chan renders the chan keyword. Clear renders the clear built-in function. Clone makes a copy of the Statement, so further tokens can be appended without affecting the original. Close renders the close built-in function. Comment adds a comment. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly. Commentf adds a comment, using a format string and a list of parameters. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly. Comparable renders the comparable identifier. Complex renders the complex built-in function. Complex128 renders the complex128 identifier. Complex64 renders the complex64 identifier. Const renders the const keyword. Continue renders the continue keyword. Copy renders the copy built-in function. Custom renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator. CustomFunc renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator. Default renders the default keyword. Defer renders the defer keyword. Defs renders a statement list enclosed in parenthesis. Use for definition lists. DefsFunc renders a statement list enclosed in parenthesis. Use for definition lists. Delete renders the delete built-in function. Do calls the provided function with the statement as a parameter. Use for embedding logic. Dot renders a period followed by an identifier. Use for fields and selectors. Else renders the else keyword. Empty adds an empty item. Empty items render nothing but are followed by a separator in lists. Err renders the err identifier. Error renders the error identifier. Fallthrough renders the fallthrough keyword. False renders the false identifier. Float32 renders the float32 identifier. Float64 renders the float64 identifier. For renders the keyword followed by a semicolon separated list. ForFunc renders the keyword followed by a semicolon separated list. Func renders the func keyword. Go renders the go keyword. GoString renders the Statement for testing. Any error will cause a panic. Goto renders the goto keyword. Id renders an identifier. If renders the keyword followed by a semicolon separated list. IfFunc renders the keyword followed by a semicolon separated list. Imag renders the imag built-in function. Index renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions. IndexFunc renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions. Int renders the int identifier. Int16 renders the int16 identifier. Int32 renders the int32 identifier. Int64 renders the int64 identifier. Int8 renders the int8 identifier. Interface renders the keyword followed by a method list enclosed by curly braces. InterfaceFunc renders the keyword followed by a method list enclosed by curly braces. Iota renders the iota identifier. Len renders the len built-in function. Line inserts a blank line. List renders a comma separated list. Use for multiple return functions. ListFunc renders a comma separated list. Use for multiple return functions. Lit renders a literal. Lit supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Passing any other type will panic. LitByte renders a byte literal. LitByteFunc renders a byte literal. LitByteFunc generates the value to render by executing the provided function. LitFunc renders a literal. LitFunc generates the value to render by executing the provided function. LitFunc supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Returning any other type will panic. LitRune renders a rune literal. LitRuneFunc renders a rune literal. LitRuneFunc generates the value to render by executing the provided function. Make renders the make built-in function. The final parameter of the make function is optional, so it is represented by a variadic parameter list. Map renders the keyword followed by a single item enclosed by square brackets. Use for map definitions. Max renders the max built-in function. MaxFunc renders the max built-in function. Min renders the min built-in function. MinFunc renders the min built-in function. New renders the new built-in function. Nil renders the nil identifier. Null adds a null item. Null items render nothing and are not followed by a separator in lists. Op renders the provided operator / token. Panic renders the panic built-in function. Params renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers. ParamsFunc renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers. Parens renders a single item in parenthesis. Use for type conversion or to specify evaluation order. Print renders the print built-in function. PrintFunc renders the print built-in function. Println renders the println built-in function. PrintlnFunc renders the println built-in function. Qual renders a qualified identifier. Imports are automatically added when used with a File. If the path matches the local path, the package name is omitted. If package names conflict they are automatically renamed. Note that it is not possible to reliably determine the package name given an arbitrary package path, so a sensible name is guessed from the path and added as an alias. The names of all standard library packages are known so these do not need to be aliased. If more control is needed of the aliases, see [File.ImportName](#importname) or [File.ImportAlias](#importalias). Range renders the range keyword. Real renders the real built-in function. Recover renders the recover built-in function. Render renders the Statement to the provided writer. RenderWithFile renders the Statement to the provided writer, using imports from the provided file. Return renders the keyword followed by a comma separated list. ReturnFunc renders the keyword followed by a comma separated list. Rune renders the rune identifier. Select renders the select keyword. String renders the string identifier. Struct renders the keyword followed by a field list enclosed by curly braces. StructFunc renders the keyword followed by a field list enclosed by curly braces. Switch renders the keyword followed by a semicolon separated list. SwitchFunc renders the keyword followed by a semicolon separated list. Tag renders a struct tag True renders the true identifier. Type renders the type keyword. Types renders a comma separated list enclosed by square brackets. Use for type parameters and constraints. TypesFunc renders a comma separated list enclosed by square brackets. Use for type parameters and constraints. Uint renders the uint identifier. Uint16 renders the uint16 identifier. Uint32 renders the uint32 identifier. Uint64 renders the uint64 identifier. Uint8 renders the uint8 identifier. Uintptr renders the uintptr identifier. Union renders a pipe separated list. Use for union type constraints. UnionFunc renders a pipe separated list. Use for union type constraints. Values renders a comma separated list enclosed by curly braces. Use for slice or composite literals. ValuesFunc renders a comma separated list enclosed by curly braces. Use for slice or composite literals. Var renders the var keyword. *Statement : Code *Statement : fmt.GoStringer func Add(code ...Code) *Statement func Any() *Statement func Append(args ...Code) *Statement func AppendFunc(f func(*Group)) *Statement func Assert(typ Code) *Statement func Block(statements ...Code) *Statement func BlockFunc(f func(*Group)) *Statement func Bool() *Statement func Break() *Statement func Byte() *Statement func Call(params ...Code) *Statement func CallFunc(f func(*Group)) *Statement func Cap(v Code) *Statement func Case(cases ...Code) *Statement func CaseFunc(f func(*Group)) *Statement func Chan() *Statement func Clear(c Code) *Statement func Close(c Code) *Statement func Comment(str string) *Statement func Commentf(format string, a ...interface{}) *Statement func Comparable() *Statement func Complex(r Code, i Code) *Statement func Complex128() *Statement func Complex64() *Statement func Const() *Statement func Continue() *Statement func Copy(dst Code, src Code) *Statement func Custom(options Options, statements ...Code) *Statement func CustomFunc(options Options, f func(*Group)) *Statement func Default() *Statement func Defer() *Statement func Defs(definitions ...Code) *Statement func DefsFunc(f func(*Group)) *Statement func Delete(m Code, key Code) *Statement func Do(f func(*Statement)) *Statement func Dot(name string) *Statement func Else() *Statement func Empty() *Statement func Err() *Statement func Error() *Statement func Fallthrough() *Statement func False() *Statement func Float32() *Statement func Float64() *Statement func For(conditions ...Code) *Statement func ForFunc(f func(*Group)) *Statement func Func() *Statement func Go() *Statement func Goto() *Statement func Id(name string) *Statement func If(conditions ...Code) *Statement func IfFunc(f func(*Group)) *Statement func Imag(c Code) *Statement func Index(items ...Code) *Statement func IndexFunc(f func(*Group)) *Statement func Int() *Statement func Int16() *Statement func Int32() *Statement func Int64() *Statement func Int8() *Statement func Interface(methods ...Code) *Statement func InterfaceFunc(f func(*Group)) *Statement func Iota() *Statement func Len(v Code) *Statement func Line() *Statement func List(items ...Code) *Statement func ListFunc(f func(*Group)) *Statement func Lit(v interface{}) *Statement func LitByte(v byte) *Statement func LitByteFunc(f func() byte) *Statement func LitFunc(f func() interface{}) *Statement func LitRune(v rune) *Statement func LitRuneFunc(f func() rune) *Statement func Make(args ...Code) *Statement func Map(typ Code) *Statement func Max(args ...Code) *Statement func MaxFunc(f func(*Group)) *Statement func Min(args ...Code) *Statement func MinFunc(f func(*Group)) *Statement func New(typ Code) *Statement func Nil() *Statement func Null() *Statement func Op(op string) *Statement func Panic(v Code) *Statement func Params(params ...Code) *Statement func ParamsFunc(f func(*Group)) *Statement func Parens(item Code) *Statement func Print(args ...Code) *Statement func PrintFunc(f func(*Group)) *Statement func Println(args ...Code) *Statement func PrintlnFunc(f func(*Group)) *Statement func Qual(path, name string) *Statement func Range() *Statement func Real(c Code) *Statement func Recover() *Statement func Return(results ...Code) *Statement func ReturnFunc(f func(*Group)) *Statement func Rune() *Statement func Select() *Statement func String() *Statement func Struct(fields ...Code) *Statement func StructFunc(f func(*Group)) *Statement func Switch(conditions ...Code) *Statement func SwitchFunc(f func(*Group)) *Statement func Tag(items map[string]string) *Statement func True() *Statement func Type() *Statement func Types(types ...Code) *Statement func TypesFunc(f func(*Group)) *Statement func Uint() *Statement func Uint16() *Statement func Uint32() *Statement func Uint64() *Statement func Uint8() *Statement func Uintptr() *Statement func Union(types ...Code) *Statement func UnionFunc(f func(*Group)) *Statement func Values(values ...Code) *Statement func ValuesFunc(f func(*Group)) *Statement func Var() *Statement func (*Group).Add(code ...Code) *Statement func (*Group).Any() *Statement func (*Group).Append(args ...Code) *Statement func (*Group).AppendFunc(f func(*Group)) *Statement func (*Group).Assert(typ Code) *Statement func (*Group).Block(statements ...Code) *Statement func (*Group).BlockFunc(f func(*Group)) *Statement func (*Group).Bool() *Statement func (*Group).Break() *Statement func (*Group).Byte() *Statement func (*Group).Call(params ...Code) *Statement func (*Group).CallFunc(f func(*Group)) *Statement func (*Group).Cap(v Code) *Statement func (*Group).Case(cases ...Code) *Statement func (*Group).CaseFunc(f func(*Group)) *Statement func (*Group).Chan() *Statement func (*Group).Clear(c Code) *Statement func (*Group).Close(c Code) *Statement func (*Group).Comment(str string) *Statement func (*Group).Commentf(format string, a ...interface{}) *Statement func (*Group).Comparable() *Statement func (*Group).Complex(r Code, i Code) *Statement func (*Group).Complex128() *Statement func (*Group).Complex64() *Statement func (*Group).Const() *Statement func (*Group).Continue() *Statement func (*Group).Copy(dst Code, src Code) *Statement func (*Group).Custom(options Options, statements ...Code) *Statement func (*Group).CustomFunc(options Options, f func(*Group)) *Statement func (*Group).Default() *Statement func (*Group).Defer() *Statement func (*Group).Defs(definitions ...Code) *Statement func (*Group).DefsFunc(f func(*Group)) *Statement func (*Group).Delete(m Code, key Code) *Statement func (*Group).Do(f func(*Statement)) *Statement func (*Group).Dot(name string) *Statement func (*Group).Else() *Statement func (*Group).Empty() *Statement func (*Group).Err() *Statement func (*Group).Error() *Statement func (*Group).Fallthrough() *Statement func (*Group).False() *Statement func (*Group).Float32() *Statement func (*Group).Float64() *Statement func (*Group).For(conditions ...Code) *Statement func (*Group).ForFunc(f func(*Group)) *Statement func (*Group).Func() *Statement func (*Group).Go() *Statement func (*Group).Goto() *Statement func (*Group).Id(name string) *Statement func (*Group).If(conditions ...Code) *Statement func (*Group).IfFunc(f func(*Group)) *Statement func (*Group).Imag(c Code) *Statement func (*Group).Index(items ...Code) *Statement func (*Group).IndexFunc(f func(*Group)) *Statement func (*Group).Int() *Statement func (*Group).Int16() *Statement func (*Group).Int32() *Statement func (*Group).Int64() *Statement func (*Group).Int8() *Statement func (*Group).Interface(methods ...Code) *Statement func (*Group).InterfaceFunc(f func(*Group)) *Statement func (*Group).Iota() *Statement func (*Group).Len(v Code) *Statement func (*Group).Line() *Statement func (*Group).List(items ...Code) *Statement func (*Group).ListFunc(f func(*Group)) *Statement func (*Group).Lit(v interface{}) *Statement func (*Group).LitByte(v byte) *Statement func (*Group).LitByteFunc(f func() byte) *Statement func (*Group).LitFunc(f func() interface{}) *Statement func (*Group).LitRune(v rune) *Statement func (*Group).LitRuneFunc(f func() rune) *Statement func (*Group).Make(args ...Code) *Statement func (*Group).Map(typ Code) *Statement func (*Group).Max(args ...Code) *Statement func (*Group).MaxFunc(f func(*Group)) *Statement func (*Group).Min(args ...Code) *Statement func (*Group).MinFunc(f func(*Group)) *Statement func (*Group).New(typ Code) *Statement func (*Group).Nil() *Statement func (*Group).Null() *Statement func (*Group).Op(op string) *Statement func (*Group).Panic(v Code) *Statement func (*Group).Params(params ...Code) *Statement func (*Group).ParamsFunc(f func(*Group)) *Statement func (*Group).Parens(item Code) *Statement func (*Group).Print(args ...Code) *Statement func (*Group).PrintFunc(f func(*Group)) *Statement func (*Group).Println(args ...Code) *Statement func (*Group).PrintlnFunc(f func(*Group)) *Statement func (*Group).Qual(path, name string) *Statement func (*Group).Range() *Statement func (*Group).Real(c Code) *Statement func (*Group).Recover() *Statement func (*Group).Return(results ...Code) *Statement func (*Group).ReturnFunc(f func(*Group)) *Statement func (*Group).Rune() *Statement func (*Group).Select() *Statement func (*Group).String() *Statement func (*Group).Struct(fields ...Code) *Statement func (*Group).StructFunc(f func(*Group)) *Statement func (*Group).Switch(conditions ...Code) *Statement func (*Group).SwitchFunc(f func(*Group)) *Statement func (*Group).Tag(items map[string]string) *Statement func (*Group).True() *Statement func (*Group).Type() *Statement func (*Group).Types(types ...Code) *Statement func (*Group).TypesFunc(f func(*Group)) *Statement func (*Group).Uint() *Statement func (*Group).Uint16() *Statement func (*Group).Uint32() *Statement func (*Group).Uint64() *Statement func (*Group).Uint8() *Statement func (*Group).Uintptr() *Statement func (*Group).Union(types ...Code) *Statement func (*Group).UnionFunc(f func(*Group)) *Statement func (*Group).Values(values ...Code) *Statement func (*Group).ValuesFunc(f func(*Group)) *Statement func (*Group).Var() *Statement func (*Statement).Add(code ...Code) *Statement func (*Statement).Any() *Statement func (*Statement).Append(args ...Code) *Statement func (*Statement).AppendFunc(f func(*Group)) *Statement func (*Statement).Assert(typ Code) *Statement func (*Statement).Block(statements ...Code) *Statement func (*Statement).BlockFunc(f func(*Group)) *Statement func (*Statement).Bool() *Statement func (*Statement).Break() *Statement func (*Statement).Byte() *Statement func (*Statement).Call(params ...Code) *Statement func (*Statement).CallFunc(f func(*Group)) *Statement func (*Statement).Cap(v Code) *Statement func (*Statement).Case(cases ...Code) *Statement func (*Statement).CaseFunc(f func(*Group)) *Statement func (*Statement).Chan() *Statement func (*Statement).Clear(c Code) *Statement func (*Statement).Clone() *Statement func (*Statement).Close(c Code) *Statement func (*Statement).Comment(str string) *Statement func (*Statement).Commentf(format string, a ...interface{}) *Statement func (*Statement).Comparable() *Statement func (*Statement).Complex(r Code, i Code) *Statement func (*Statement).Complex128() *Statement func (*Statement).Complex64() *Statement func (*Statement).Const() *Statement func (*Statement).Continue() *Statement func (*Statement).Copy(dst Code, src Code) *Statement func (*Statement).Custom(options Options, statements ...Code) *Statement func (*Statement).CustomFunc(options Options, f func(*Group)) *Statement func (*Statement).Default() *Statement func (*Statement).Defer() *Statement func (*Statement).Defs(definitions ...Code) *Statement func (*Statement).DefsFunc(f func(*Group)) *Statement func (*Statement).Delete(m Code, key Code) *Statement func (*Statement).Do(f func(*Statement)) *Statement func (*Statement).Dot(name string) *Statement func (*Statement).Else() *Statement func (*Statement).Empty() *Statement func (*Statement).Err() *Statement func (*Statement).Error() *Statement func (*Statement).Fallthrough() *Statement func (*Statement).False() *Statement func (*Statement).Float32() *Statement func (*Statement).Float64() *Statement func (*Statement).For(conditions ...Code) *Statement func (*Statement).ForFunc(f func(*Group)) *Statement func (*Statement).Func() *Statement func (*Statement).Go() *Statement func (*Statement).Goto() *Statement func (*Statement).Id(name string) *Statement func (*Statement).If(conditions ...Code) *Statement func (*Statement).IfFunc(f func(*Group)) *Statement func (*Statement).Imag(c Code) *Statement func (*Statement).Index(items ...Code) *Statement func (*Statement).IndexFunc(f func(*Group)) *Statement func (*Statement).Int() *Statement func (*Statement).Int16() *Statement func (*Statement).Int32() *Statement func (*Statement).Int64() *Statement func (*Statement).Int8() *Statement func (*Statement).Interface(methods ...Code) *Statement func (*Statement).InterfaceFunc(f func(*Group)) *Statement func (*Statement).Iota() *Statement func (*Statement).Len(v Code) *Statement func (*Statement).Line() *Statement func (*Statement).List(items ...Code) *Statement func (*Statement).ListFunc(f func(*Group)) *Statement func (*Statement).Lit(v interface{}) *Statement func (*Statement).LitByte(v byte) *Statement func (*Statement).LitByteFunc(f func() byte) *Statement func (*Statement).LitFunc(f func() interface{}) *Statement func (*Statement).LitRune(v rune) *Statement func (*Statement).LitRuneFunc(f func() rune) *Statement func (*Statement).Make(args ...Code) *Statement func (*Statement).Map(typ Code) *Statement func (*Statement).Max(args ...Code) *Statement func (*Statement).MaxFunc(f func(*Group)) *Statement func (*Statement).Min(args ...Code) *Statement func (*Statement).MinFunc(f func(*Group)) *Statement func (*Statement).New(typ Code) *Statement func (*Statement).Nil() *Statement func (*Statement).Null() *Statement func (*Statement).Op(op string) *Statement func (*Statement).Panic(v Code) *Statement func (*Statement).Params(params ...Code) *Statement func (*Statement).ParamsFunc(f func(*Group)) *Statement func (*Statement).Parens(item Code) *Statement func (*Statement).Print(args ...Code) *Statement func (*Statement).PrintFunc(f func(*Group)) *Statement func (*Statement).Println(args ...Code) *Statement func (*Statement).PrintlnFunc(f func(*Group)) *Statement func (*Statement).Qual(path, name string) *Statement func (*Statement).Range() *Statement func (*Statement).Real(c Code) *Statement func (*Statement).Recover() *Statement func (*Statement).Return(results ...Code) *Statement func (*Statement).ReturnFunc(f func(*Group)) *Statement func (*Statement).Rune() *Statement func (*Statement).Select() *Statement func (*Statement).String() *Statement func (*Statement).Struct(fields ...Code) *Statement func (*Statement).StructFunc(f func(*Group)) *Statement func (*Statement).Switch(conditions ...Code) *Statement func (*Statement).SwitchFunc(f func(*Group)) *Statement func (*Statement).Tag(items map[string]string) *Statement func (*Statement).True() *Statement func (*Statement).Type() *Statement func (*Statement).Types(types ...Code) *Statement func (*Statement).TypesFunc(f func(*Group)) *Statement func (*Statement).Uint() *Statement func (*Statement).Uint16() *Statement func (*Statement).Uint32() *Statement func (*Statement).Uint64() *Statement func (*Statement).Uint8() *Statement func (*Statement).Uintptr() *Statement func (*Statement).Union(types ...Code) *Statement func (*Statement).UnionFunc(f func(*Group)) *Statement func (*Statement).Values(values ...Code) *Statement func (*Statement).ValuesFunc(f func(*Group)) *Statement func (*Statement).Var() *Statement
Package-Level Functions (total 125)
Add appends the provided items to the statement.
Any renders the any identifier.
Append renders the append built-in function.
AppendFunc renders the append built-in function.
Assert renders a period followed by a single item enclosed by parenthesis. Use for type assertions.
Block renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements.
BlockFunc renders a statement list enclosed by curly braces. Use for code blocks. A special case applies when used directly after Case or Default, where the braces are omitted. This allows use in switch and select statements.
Bool renders the bool identifier.
Break renders the break keyword.
Byte renders the byte identifier.
Call renders a comma separated list enclosed by parenthesis. Use for function calls.
CallFunc renders a comma separated list enclosed by parenthesis. Use for function calls.
Cap renders the cap built-in function.
Case renders the keyword followed by a comma separated list.
CaseFunc renders the keyword followed by a comma separated list.
Chan renders the chan keyword.
Clear renders the clear built-in function.
Close renders the close built-in function.
Comment adds a comment. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly.
Commentf adds a comment, using a format string and a list of parameters. If the provided string contains a newline, the comment is formatted in multiline style. If the comment string starts with "//" or "/*", the automatic formatting is disabled and the string is rendered directly.
Comparable renders the comparable identifier.
Complex renders the complex built-in function.
Complex128 renders the complex128 identifier.
Complex64 renders the complex64 identifier.
Const renders the const keyword.
Continue renders the continue keyword.
Copy renders the copy built-in function.
Custom renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator.
CustomFunc renders a customized statement list. Pass in options to specify multi-line, and tokens for open, close, separator.
Default renders the default keyword.
Defer renders the defer keyword.
Defs renders a statement list enclosed in parenthesis. Use for definition lists.
DefsFunc renders a statement list enclosed in parenthesis. Use for definition lists.
Delete renders the delete built-in function.
DictFunc executes a func(Dict) to generate the value. Use with Values for map or composite literals.
Do calls the provided function with the statement as a parameter. Use for embedding logic.
Dot renders a period followed by an identifier. Use for fields and selectors.
Else renders the else keyword.
Empty adds an empty item. Empty items render nothing but are followed by a separator in lists.
Err renders the err identifier.
Error renders the error identifier.
Fallthrough renders the fallthrough keyword.
False renders the false identifier.
Float32 renders the float32 identifier.
Float64 renders the float64 identifier.
For renders the keyword followed by a semicolon separated list.
ForFunc renders the keyword followed by a semicolon separated list.
Func renders the func keyword.
Go renders the go keyword.
Goto renders the goto keyword.
Id renders an identifier.
If renders the keyword followed by a semicolon separated list.
IfFunc renders the keyword followed by a semicolon separated list.
Imag renders the imag built-in function.
Index renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions.
IndexFunc renders a colon separated list enclosed by square brackets. Use for array / slice indexes and definitions.
Int renders the int identifier.
Int16 renders the int16 identifier.
Int32 renders the int32 identifier.
Int64 renders the int64 identifier.
Int8 renders the int8 identifier.
Interface renders the keyword followed by a method list enclosed by curly braces.
InterfaceFunc renders the keyword followed by a method list enclosed by curly braces.
Iota renders the iota identifier.
IsReservedWord returns if this is a reserved word in go
Len renders the len built-in function.
Line inserts a blank line.
List renders a comma separated list. Use for multiple return functions.
ListFunc renders a comma separated list. Use for multiple return functions.
Lit renders a literal. Lit supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Passing any other type will panic.
LitByte renders a byte literal.
LitByteFunc renders a byte literal. LitByteFunc generates the value to render by executing the provided function.
LitFunc renders a literal. LitFunc generates the value to render by executing the provided function. LitFunc supports only built-in types (bool, string, int, complex128, float64, float32, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, uintptr and complex64). Returning any other type will panic.
LitRune renders a rune literal.
LitRuneFunc renders a rune literal. LitRuneFunc generates the value to render by executing the provided function.
Make renders the make built-in function. The final parameter of the make function is optional, so it is represented by a variadic parameter list.
Map renders the keyword followed by a single item enclosed by square brackets. Use for map definitions.
Max renders the max built-in function.
MaxFunc renders the max built-in function.
Min renders the min built-in function.
MinFunc renders the min built-in function.
New renders the new built-in function.
NewFile Creates a new file, with the specified package name.
NewFilePath creates a new file while specifying the package path - the package name is inferred from the path.
NewFilePathName creates a new file with the specified package path and name.
Nil renders the nil identifier.
Null adds a null item. Null items render nothing and are not followed by a separator in lists.
Op renders the provided operator / token.
Panic renders the panic built-in function.
Params renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers.
ParamsFunc renders a comma separated list enclosed by parenthesis. Use for function parameters and method receivers.
Parens renders a single item in parenthesis. Use for type conversion or to specify evaluation order.
Print renders the print built-in function.
PrintFunc renders the print built-in function.
Println renders the println built-in function.
PrintlnFunc renders the println built-in function.
Qual renders a qualified identifier. Imports are automatically added when used with a File. If the path matches the local path, the package name is omitted. If package names conflict they are automatically renamed. Note that it is not possible to reliably determine the package name given an arbitrary package path, so a sensible name is guessed from the path and added as an alias. The names of all standard library packages are known so these do not need to be aliased. If more control is needed of the aliases, see [File.ImportName](#importname) or [File.ImportAlias](#importalias).
Range renders the range keyword.
Real renders the real built-in function.
Recover renders the recover built-in function.
Return renders the keyword followed by a comma separated list.
ReturnFunc renders the keyword followed by a comma separated list.
Rune renders the rune identifier.
Select renders the select keyword.
String renders the string identifier.
Struct renders the keyword followed by a field list enclosed by curly braces.
StructFunc renders the keyword followed by a field list enclosed by curly braces.
Switch renders the keyword followed by a semicolon separated list.
SwitchFunc renders the keyword followed by a semicolon separated list.
Tag renders a struct tag
True renders the true identifier.
Type renders the type keyword.
Types renders a comma separated list enclosed by square brackets. Use for type parameters and constraints.
TypesFunc renders a comma separated list enclosed by square brackets. Use for type parameters and constraints.
Uint renders the uint identifier.
Uint16 renders the uint16 identifier.
Uint32 renders the uint32 identifier.
Uint64 renders the uint64 identifier.
Uint8 renders the uint8 identifier.
Uintptr renders the uintptr identifier.
Union renders a pipe separated list. Use for union type constraints.
UnionFunc renders a pipe separated list. Use for union type constraints.
Values renders a comma separated list enclosed by curly braces. Use for slice or composite literals.
ValuesFunc renders a comma separated list enclosed by curly braces. Use for slice or composite literals.
Var renders the var keyword.