Using revel framework (golang), how can I get port I set in app.conf?
// in app.conf
http.port=9090
And I have to use my server's port number in controllers (for example OAuth coding) such as
requestToken, url, err := TWITTER.GetRequestTokenAndUrl(
"http://127.0.0.1:9090/Application/Authenticate",
)
I don't want to write port number by hard coding. Using revel, is there any good way to get port number (or any other conf values) set in app.conf?
Thank you in advance