mate

package
v0.0.0-...-0182b63 Latest Latest
Warning

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

Go to latest
Published: May 28, 2022 License: BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func NewApp

func NewApp(prefix string) *App

func (*App) ScanDefaults

func (app *App) ScanDefaults(v interface{}) (*EnvVars, error)

func (*App) Unmarshal

func (app *App) Unmarshal(environ []string, v interface{}) error

func (*App) View

func (app *App) View(v interface{}) (string, error)

type EnvVar

type EnvVar struct {
	Key   string
	Value string
}

func (*EnvVar) RealKey

func (ev *EnvVar) RealKey(prefix string) string

type EnvVars

type EnvVars struct {
	Prefix string
	Dict   map[string]*EnvVar
}

func NewEnvVars

func NewEnvVars(prefix string) *EnvVars

func NewEnvVarsFromEnviron

func NewEnvVarsFromEnviron(prefix string, environ []string) *EnvVars

func (*EnvVars) From

func (evs *EnvVars) From(v interface{}) error

func (*EnvVars) Get

func (evs *EnvVars) Get(key string) *EnvVar

func (*EnvVars) Len

func (evs *EnvVars) Len(key string) int

func (*EnvVars) Set

func (evs *EnvVars) Set(envVar *EnvVar)

func (*EnvVars) To

func (evs *EnvVars) To(v interface{}) error

func (*EnvVars) View

func (evs *EnvVars) View() string

type IntegerPath

type IntegerPath int

type PathWalker

type PathWalker []path

func NewPathWalker

func NewPathWalker() *PathWalker

func (*PathWalker) Enter

func (pw *PathWalker) Enter(p path)

func (*PathWalker) Exit

func (pw *PathWalker) Exit()

func (PathWalker) Prefix

func (pw PathWalker) Prefix(n int) string

func (PathWalker) String

func (pw PathWalker) String() string

type StringPath

type StringPath string

Jump to

Keyboard shortcuts

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