filterpy

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PopulateFuncMap

func PopulateFuncMap(fm template.FuncMap)

PopulateFuncMap fills the given FuncMap with the functions from this package.

func ToDefaultString

func ToDefaultString(schema *model.Schema, prefix string) (string, error)

ToDefaultString returns the default value for a type

func ToParamString

func ToParamString(schema *model.Schema, name string, prefix string) (string, error)

func ToReturnString

func ToReturnString(schema *model.Schema, prefix string) (string, error)

func ToTestValueString added in v0.40.0

func ToTestValueString(prefix string, schema *model.Schema) (string, error)

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.

func ToVarString added in v0.13.13

func ToVarString(node *model.TypedNode) (string, error)

Types

type PyExtern added in v0.38.0

type PyExtern struct {
	Import  string
	Name    string
	Default string
}

Jump to

Keyboard shortcuts

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