ini

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2014 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Write

func Write(filename string, dict *Dict) error

Types

type Dict

type Dict map[string]map[string]string

func Load

func Load(filename string) (dict Dict, err error)

func (Dict) Delete

func (dict Dict) Delete(section, key string)

func (Dict) GetBool

func (dict Dict) GetBool(section, key string) (bool, bool)

func (Dict) GetDouble

func (dict Dict) GetDouble(section, key string) (float64, bool)

func (Dict) GetInt

func (dict Dict) GetInt(section, key string) (int, bool)

func (Dict) GetSections

func (dict Dict) GetSections() []string

func (Dict) GetString

func (dict Dict) GetString(section, key string) (string, bool)

func (Dict) SetBool

func (dict Dict) SetBool(section, key string, value bool)

func (Dict) SetDouble

func (dict Dict) SetDouble(section, key string, value float64)

func (Dict) SetInt

func (dict Dict) SetInt(section, key string, value int)

func (Dict) SetString

func (dict Dict) SetString(section, key, value string)

func (Dict) String

func (dict Dict) String() string

type Error

type Error string

func (Error) Error

func (e Error) Error() string

Jump to

Keyboard shortcuts

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