config

package
v1.0.0-...-a0f063d Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(name string, configuration map[string]any)

Add config to application.

func Env

func Env(envName string, defaultValue ...any) any

Env Get config from env.

func Get

func Get(path string, defaultValue ...any) any

Get config from application.

func GetBool

func GetBool(path string, defaultValue ...any) bool

GetBool Get bool type config from application.

func GetDuration

func GetDuration(path string) time.Duration

func GetInt

func GetInt(path string, defaultValue ...any) int

GetInt Get int type config from application.

func GetMap

func GetMap(path string) map[string]any

func GetString

func GetString(path string, defaultValue ...any) string

GetString Get string type config from application.

func GetTime

func GetTime(path string) time.Time

Types

This section is empty.

Jump to

Keyboard shortcuts

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