config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithContext added in v0.4.0

func WithContext(ctx context.Context, conf *Config) context.Context

Types

type Config

type Config struct {
	Values     Values
	Inplace    bool
	Recursive  bool
	Prefix     string
	LeftDelim  string
	RightDelim string
	Indent     int
	Fail       bool
	Strip      bool
}

func FromContext added in v0.4.0

func FromContext(ctx context.Context) (*Config, bool)

func New

func New() *Config

type Values

type Values map[string]any

func (Values) Fill

func (values Values) Fill(rawValues map[string]string)

func (Values) SetNested

func (values Values) SetNested(v any, k ...string)

func (Values) V

func (values Values) V() any

func (Values) Val

func (values Values) Val() any

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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