config

package
v0.0.0-...-0e56039 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
}

Config struct

func NewConfig

func NewConfig() (*Config, error)

NewConfig constructor

func (Config) GetInt

func (c Config) GetInt(key string) int

GetInt returns int from config

func (Config) GetString

func (c Config) GetString(key string) string

GetString returns string from config

func (Config) UnmarshalKey

func (c Config) UnmarshalKey(key string, strct interface{}) error

UnmarshalKey fill struct from config

Jump to

Keyboard shortcuts

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