Documentation
¶
Index ¶
Constants ¶
View Source
const ( LayoutName string = "layout" LayoutFile string = "./external/web/view/layouts/layout.html" ViewFileCommonPath string = "./external/web/view/views/" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MyConfig ¶
type MyConfig struct {
Url string `yaml:"url"`
Port string `yaml:"port"`
SqlDriver string `yaml:"sqldriver"`
User string `yaml:"user"` // 環境変数から取得
Password string `yaml:"password"` // 環境変数から取得
Protocol string `yaml:"protocol"`
Address string `yaml:"address"`
DataBase string `yaml:"database"`
}
func LoadConfig ¶
設定ファイルを読み込む 秘匿情報は環境変数から読み込みます https://mtyurt.net/post/go-using-environment-variables-in-configuration-files.html
Click to show internal directories.
Click to hide internal directories.