Documentation ¶
Index ¶
- func PopulateFuncMap(fm template.FuncMap)
- func ToDefaultString(schema *model.Schema, prefix string) (string, error)
- func ToParamString(schema *model.Schema, name string, prefix string) (string, error)
- func ToReturnString(schema *model.Schema, prefix string) (string, error)
- func ToTestValueString(prefix string, schema *model.Schema) (string, error)
- func ToVarString(node *model.TypedNode) (string, error)
- type PyExtern
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PopulateFuncMap ¶
PopulateFuncMap fills the given FuncMap with the functions from this package.
func ToDefaultString ¶
ToDefaultString returns the default value for a type
func ToParamString ¶
func ToTestValueString ¶ added in v0.40.0
ToTestValueString returns the test value string for a given schema. We intentionally ignore arrays in order to return the test value of the inner type.
Types ¶
Click to show internal directories.
Click to hide internal directories.