config

package
v0.0.0-...-9fe57bb Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//Settings keeps db settings for current environment
	Settings settingYaml
	//SettingsAll keeps db settings for all environments
	SettingsAll settingsYaml
	//AppDir is the full path to application dir
	AppDir string
	//AssetsDir is the full path to assets folder
	AssetsDir string
	//UploadPath is the full path to uploads dir
	UploadPath string
	//UploadPathURL is the uploads dir url (/public/uploads)
	UploadPathURL string
	//LogFile is log file reference, opened by config.Initialize, closed by main.main's defer
	LogFile *os.File
)

Functions

func Initialize

func Initialize(mode string)

Initialize loads config file and initializes config variables

Types

This section is empty.

Jump to

Keyboard shortcuts

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