goini

package
v0.0.45 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error) string

Types

type Config

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

func SetConfig

func SetConfig(filepath string) *Config

Create an empty configuration file

func (*Config) DeleteValue

func (c *Config) DeleteValue(section, name string) bool

Delete the corresponding key values

func (*Config) GetValue

func (c *Config) GetValue(section, name string) (string, error)

To obtain corresponding value of the key values

func (*Config) ReadList

func (c *Config) ReadList() []map[string]map[string]string

List all the configuration file

func (*Config) SetValue

func (c *Config) SetValue(section, key, value string) bool

Set the corresponding value of the key value, if not add, if there is a key change

Jump to

Keyboard shortcuts

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