ini

package
v1.26.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetKey

func SetKey(iniFile string, value Item) error

SetKey saves the value for given INI Key.

func SetKeys

func SetKeys(iniFile string, values []Item) error

SetKeys saves multiple values for given INI Keys.

Types

type Item

type Item struct {
	// Key is the section and key name for this INI setting
	Key Key
	// Value is the value for this Key, or empty string
	Value string
}

Item holds the value for a Key.

func GetKey

func GetKey(iniFile string, key Key) (Item, error)

GetKey returns the value for given INI Key.

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