config

package
v1.70.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(structPtr Handler)

Types

type Handler

type Handler interface {
	GetValue() *Value
	SetHandler(*Value)
}

type Value

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

func (*Value) GetValue

func (val *Value) GetValue() *Value

func (*Value) ScanPaths

func (val *Value) ScanPaths(iter func(path string) error) error

func (*Value) ScanValues

func (val *Value) ScanValues(encode bool, iter valueField) error

func (*Value) SetValue

func (val *Value) SetValue(path, value string, decode bool) (ok bool)

type WithBuffer

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

func (*WithBuffer) Load

func (wb *WithBuffer) Load(r io.Reader) error

func (*WithBuffer) Save

func (wb *WithBuffer) Save(w io.Writer) error

func (*WithBuffer) SetHandler

func (wb *WithBuffer) SetHandler(v *Value)

type WithFile

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

func (*WithFile) Load

func (wf *WithFile) Load(filename string) error

func (*WithFile) Save

func (wf *WithFile) Save() error

func (*WithFile) SetHandler

func (wf *WithFile) SetHandler(v *Value)

Jump to

Keyboard shortcuts

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