Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomCurrency ¶
func RandomCurrency() string
func RandomMoney ¶
func RandomMoney() int64
func RandomOwner ¶
func RandomOwner() string
func RandomString ¶
Types ¶
type Config ¶
type Config struct { DBDriver string `mapstructure:"DB_DRIVER"` DBSource string `mapstructure:"DB_SOURCE"` ServerAddress string `mapstructure:"SERVER_ADDRESS"` }
config stores the all configurations of the application. the values are read by the viper from a config file or environment varialbes
func LoadConfig ¶
loadconfig reads configurations from files or environment varialbes
Click to show internal directories.
Click to hide internal directories.