config

package
v0.0.0-...-7b2405d Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigEnv         = "develop"
	ConfigDefaultFile = "config.yaml"
	ConfigTestFile    = "config.test.yaml"
	ConfigDebugFile   = "config.debug.yaml"
	ConfigReleaseFile = "config.release.yaml"
)

Variables

View Source
var (
	Conf  Config
	Viper *viper.Viper
	DB    *gorm.DB
)

Functions

func InitConfig

func InitConfig() (*viper.Viper, error)

Types

type Config

type Config struct {
	App struct {
		Name   string
		Mode   string
		Port   string
		Cookie string
		Debug  bool
	}
	Mysql mysql
}

Jump to

Keyboard shortcuts

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