config

package
v0.0.0-...-b7cded1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(key string, defaultVal string) string

this function load env value if not have value it will assign defaultVal

func MustGetEnv

func MustGetEnv(k string) string

Stop running if not have some env

Types

type Config

type Config struct {
	Mode                                          string
	Port                                          string
	DbHost, DbPort, DbUser, DbName, DbPass, DbSSL string
}

func Init

func Init() *Config

func (*Config) GetDbConStr

func (cfg *Config) GetDbConStr() string

Jump to

Keyboard shortcuts

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