ini

package
v0.0.0-...-2552c51 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func (*Config) AppendSection

func (s *Config) AppendSection(name string) config.Section

func (*Config) Save

func (s *Config) Save(w io.Writer) (err error)

func (*Config) Section

func (s *Config) Section(name string) (config.Section, bool)

func (*Config) Sections

func (s *Config) Sections(name string) ([]config.Section, bool)

func (*Config) Value

func (s *Config) Value(name string) (value.Value, bool)

func (*Config) ValueDefault

func (s *Config) ValueDefault(name string, defaultVal interface{}) interface{}

func (*Config) ValueSetup

func (s *Config) ValueSetup(name string, ptr interface{}) bool

type Section

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

func (*Section) Save

func (s *Section) Save(w io.Writer) (err error)

func (*Section) SetValue

func (s *Section) SetValue(name string, val interface{})

func (*Section) Value

func (s *Section) Value(name string) (value.Value, bool)

func (*Section) ValueDefault

func (s *Section) ValueDefault(name string, defaultVal interface{}) interface{}

func (*Section) ValueSetup

func (s *Section) ValueSetup(name string, ptr interface{}) bool

Jump to

Keyboard shortcuts

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