filtercpp

package
v0.51.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const GPL_LIC = `` /* 659-byte string literal not displayed */

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(prefix string, schema *model.Schema) (string, error)

ToDefaultString returns the default value for a type

func ToParamString

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

func ToReturnString

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

func ToTestValueString added in v0.44.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 ToTypeRefString added in v0.17.0

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

func ToVarString added in v0.13.13

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

Types

type CppExtern added in v0.38.0

type CppExtern struct {
	NameSpace    string
	Include      string
	Name         string
	Default      string
	Component    string
	Package      string
	ConanPackage string
	ConanVersion string
}

Jump to

Keyboard shortcuts

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