extra

package
v1.2.16-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OPERATOR_REGEX = `^\$(?P<opcode>[\w\d]+)([\.](?P<operand>.+))?$`
)

Variables

View Source
var (
	ErrUnsupportedOperator = func(op string) error {
		return errors.New("unsupported operator: " + op)
	}
)

Functions

This section is empty.

Types

type Extra

type Extra map[string]string

func FromRaw

func FromRaw(raw map[string]string) Extra

func New

func New() Extra

func (Extra) Apply

func (e Extra) Apply(cfg map[string]string) (y Extra, err error)

func (Extra) Copy

func (e Extra) Copy() (y Extra)

func (Extra) Get

func (e Extra) Get(key string) (val string, ok bool)

func (Extra) Raw

func (e Extra) Raw() map[string]string

func (Extra) Set

func (e Extra) Set(key, val string) Extra

func (Extra) Unset

func (e Extra) Unset(key string) Extra

Jump to

Keyboard shortcuts

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