parameter

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PathDelimiter = `.`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

type Map struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap(params map[string]string) *Map

func (*Map) GetParam

func (m *Map) GetParam(param string) string

func (*Map) GetParamWithDefault

func (m *Map) GetParamWithDefault(param string, defaultValue string) string

func (*Map) HasParam

func (m *Map) HasParam(param string) bool

type Yaml

type Yaml struct {
	// contains filtered or unexported fields
}

func NewYamlFromFiles

func NewYamlFromFiles(files []string) *Yaml

func NewYamlFromMap

func NewYamlFromMap(m map[string]interface{}) *Yaml

func (*Yaml) GetParam

func (y *Yaml) GetParam(param string) interface{}

func (*Yaml) GetParamWithDefault

func (y *Yaml) GetParamWithDefault(param string, defaultValue interface{}) interface{}

func (*Yaml) Keys

func (y *Yaml) Keys() []string

Jump to

Keyboard shortcuts

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