A config parser for the KrakenD framework
Import the package
import "github.com/krakend/krakend-koanf"
And you are ready for building a parser and get the config from json / yaml / toml files.
parser := koanf.New()
serviceConfig, err := parser.Parse(*configFile)
if err != nil {
log.Fatal("ERROR:", err.Error())
}