env

package
v0.0.0-...-1344b2c Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadEnv

func ReadEnv(envFile string) error

ReadEnv - 指定したファイル名から環境変数を読み込む

func ReadMysqlEnv

func ReadMysqlEnv() (mysql.Config, error)

ReadMysqlEnv - 指定したenvfileからMysqlに関する設定を読み込む

Types

type APIConfig

type APIConfig struct {
	Host string `split_words:"true"`
	Port string `split_words:"true"`
}

APIConfig - APIサーバのホストとポートのコンフィグ

func ReadAPIEnv

func ReadAPIEnv() (APIConfig, error)

ReadAPIEnv - APIサーバに関する設定を読み込む

Jump to

Keyboard shortcuts

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