config

package
v0.0.0-...-60c035c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server struct {
		Host    string
		Port    string
		Timeout int
	}
	DataBase struct {
		Host     string
		Port     string
		User     string
		Password string
		Database string
	}
}

Config 設定

func NewConfig

func NewConfig(filePath string) *Config

NewConfig 設定ファイルを読み込みCondigを作成します

func (*Config) ServerBaseURL

func (c *Config) ServerBaseURL() string

ServerBaseURL ConfigからサーバーのBaseURLを作成して返却します。

Jump to

Keyboard shortcuts

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