config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package config lets you retrieve config variables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(key string) bool

func GetDefaultBool

func GetDefaultBool(key string, defaultVal bool) bool

func GetDefaultDurationS added in v0.2.0

func GetDefaultDurationS(key string, defaultVal int) time.Duration

GetDefaultDurationS returns the value of the in time.Duration or a default value The default value should be the amount of seconds and gets transformed to a time.Duration

func GetDefaultInt

func GetDefaultInt(key string, defaultVal int) int

func GetDefaultString

func GetDefaultString(key, defaultValue string) string

func GetDefaultUint16

func GetDefaultUint16(key string, defaultVal uint16) uint16

func GetDurationS added in v0.2.0

func GetDurationS(key string) time.Duration

GetDurationS returns the value of the key as a duration

func GetInt

func GetInt(key string) int

func GetString

func GetString(key string) string

func GetUint16

func GetUint16(key string) uint16

func Init

func Init() error

func IsDev

func IsDev() bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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