18 lines
261 B
Go
18 lines
261 B
Go
|
package main
|
||
|
|
||
|
import "os"
|
||
|
|
||
|
type config struct {
|
||
|
HostName string
|
||
|
AppName string
|
||
|
PrivateKey string
|
||
|
}
|
||
|
|
||
|
func readConfig() config {
|
||
|
return config{
|
||
|
HostName: os.Getenv("host"),
|
||
|
AppName: os.Getenv("app"),
|
||
|
PrivateKey: os.Getenv("private-key"),
|
||
|
}
|
||
|
}
|