ini

package
v1.28.6 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(iniFile string, key Key) string

GetKey returns the value for given INI Key.

func GetKeys added in v1.27.0

func GetKeys(iniFile string, keys []Key) map[Key]string

GetKeys returns the values for given INI Keys.

func SetKey

func SetKey(iniFile string, key Key, value string) error

SetKey saves the value for given INI Key.

func SetKeys

func SetKeys(iniFile string, keys map[Key]string) error

SetKeys saves multiple values for given INI Keys.

Types

type Key

type Key struct {
	// Section is an INI section for this key
	Section string
	// Name is the key name of an INI setting
	Name string
}

Key holds a single INI section and key.

Jump to

Keyboard shortcuts

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