ipld-eth-server/cmd/utils.go
2017-11-09 13:37:10 -06:00

16 lines
255 B
Go

package cmd
import (
"log"
"github.com/8thlight/vulcanizedb/pkg/config"
)
func LoadConfig(environment string) config.Config {
cfg, err := config.NewConfig(environment)
if err != nil {
log.Fatalf("Error loading config\n%v", err)
}
return *cfg
}