conf

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Values map[string]string
}

Config holds values read from file or any other

func ParseFile

func ParseFile(filename string) (*Config, error)

func ParseReader

func ParseReader(r io.Reader) *Config

func (*Config) GetBool

func (c *Config) GetBool(key string) (b bool)

func (*Config) GetInt

func (c *Config) GetInt(key string) (n int)

func (*Config) GetString

func (c *Config) GetString(key string) (s string)

Jump to

Keyboard shortcuts

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