config

package
v0.0.5-dev Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version of the application
	Version = "dev"
	// BuildTime of the application
	BuildTime = time.Now().Format(time.RFC3339)
	// Commit of the application
	Commit = "dev build"
)

Functions

func GetInt

func GetInt(key string, defaultValue ...int) int

GetInt func to get int value from environment variable

func GetString

func GetString(key string, defaultValue ...string) string

GetString func to get string value from environment variable

func LoadEnv

func LoadEnv() error

LoadEnv loads the .env file, this should be called before using GetString or GetInt functions

Types

This section is empty.

Jump to

Keyboard shortcuts

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