Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Environment string `yaml:"environment"` SqlDriver string `yaml:"sqldriver"` User string `yaml:"user"` // 環境変数から取得 Password string `yaml:"password"` // 環境変数から取得 Protocol string `yaml:"protocol"` Address string `yaml:"address"` DataBase string `yaml:"database"` Auth ConfigAuth `yaml:"auth"` // 環境変数から取得 }
var Cfg *Config
func LoadConfig ¶
設定ファイルを読み込む 秘匿情報は環境変数から読み込みます https://mtyurt.net/post/go-using-environment-variables-in-configuration-files.html
type ConfigAuth ¶
Click to show internal directories.
Click to hide internal directories.