push-to-dokku/config.go

18 lines
261 B
Go
Raw Normal View History

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"),
}
}