filtergo

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)

func ToParamString

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

func ToPublicVarString added in v0.12.0

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

func ToReturnString

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

TODO: need to return error case

func ToVarString added in v0.12.0

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

Types

type GoExtern added in v0.38.0

type GoExtern struct {
	Module string
	Import string
	Name   string
}

Jump to

Keyboard shortcuts

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