Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EnvPrefix is the environment prefix for the config. EnvPrefix string = "gosvc" )
Variables ¶
View Source
var ( // EnvPrefixU is the upper case environment prefix for the config. EnvPrefixU string = strings.ToUpper(EnvPrefix) )
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // The host to listen on, e.g. "1.2.3.4". Host string // The port to listen on, e.g. 1234. Port int }
Config contains configuration for this service
func LoadConfig ¶
LoadConfig loads the configuration and returns a config struct.
Click to show internal directories.
Click to hide internal directories.