conf

package
Version: v0.0.0-...-8dc4765 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(section string, key string, def bool) bool

Returns bool value from configuration file. If section or key isn't found, default value will be returned

func GetInt

func GetInt(section string, key string, def int) int

Returns int value from configuration file. If section or key isn't found, default value will be returned

func GetString

func GetString(section string, key string, def string) string

Returns string value from configuration file. If section or key isn't found, default value will be returned

func Open

func Open(path string) error

Attempts to open and read configuration file. Error is returned on fail

func SectionExist

func SectionExist(section string) bool

Attempts to check if given section exists

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL