parameter

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeNameInt     = "int"
	TypeNameUint    = "uint"
	TypeNameBoolean = "boolean"
	TypeNameString  = "string"
	TypeNameFloat   = "float"
)

Variables

View Source
var (
	ErrUnknownEntryType = errors.New("unknown entry type")
)

Functions

This section is empty.

Types

type Parameter

type Parameter struct {
	Name        string
	Description string
	Type        string
	Default     any
	DefaultStr  string
}

type ParameterGroup

type ParameterGroup struct {
	Parameters []*Parameter
	SubGroups  []*ParameterGroup
	Entries    []interface{}
	Name       string
	BaseName   string
	Level      int
	Default    any
}

func ParseConfigParameterGroups

func ParseConfigParameterGroups(config *configuration.Configuration, flagset *flag.FlagSet, ignoreFlags map[string]struct{}) []*ParameterGroup

Jump to

Keyboard shortcuts

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