Documentation
¶
Overview ¶
Package golang provides the Go-specific template function map used by the go-swagger code generator. Functions defined here are pure utilities with no dependency on the generator's own types (GenSchema, GenOperation, etc.).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FuncMap ¶
func FuncMap(mangler mangling.NameMangler) template.FuncMap
FuncMap returns a template.FuncMap containing all Go-specific template functions that are independent of generator types. Callers typically merge additional entries (e.g. LanguageOpts-dependent or type-dependent functions) on top.
func PrefixForName ¶
PrefixForName returns a human-readable prefix for names starting with special characters. It is used as mangling.PrefixFunc.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.