configfile

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapTo

func MapTo(cfg *ini.File, section string, v interface{}) error

func ParseKeyFromSectionString

func ParseKeyFromSectionString(path string, section string, key string) (string, error)

Types

type Meta

type Meta struct {
	Path    string
	Cfg     *ini.File
	Section *ini.Section
}

func Load

func Load(path string) (*Meta, error)

func (*Meta) NewSection

func (m *Meta) NewSection(section string) error

func (*Meta) Save

func (m *Meta) Save() error

func (*Meta) SetKeySectionString

func (m *Meta) SetKeySectionString(section string, key string, value string)

func (*Meta) SetKeyToNewSectionString

func (m *Meta) SetKeyToNewSectionString(key string, value string)

Jump to

Keyboard shortcuts

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