May be this documentation will be useful - http://robfig.github.io/revel/docs/godoc/config.html
For example
// Load app.conf
var err error
Config, err = LoadConfig("app.conf")
if err != nil || Config == nil {
log.Fatalln("Failed to load app.conf:", err)
}
HttpPort = Config.IntDefault("http.port", 9000)
An another approach may be used instead direct loading (see modules/db/app/db.go)
import (
"github.com/robfig/revel"
)
if option, found = revel.Config.String("option"); !found {
revel.ERROR.Fatal("No option found.")
}