func AbsoluteUrlFor(name string, args ...string) *url.URL {
	u := UrlFor(name, args...)
	u.Host = UrlBase.Host
	u.Scheme = UrlBase.Scheme
	return u
}
UrlFor returns the avsolute URL for the route name.
UrlBase is used for the URL Host and Scheme
package goanna
import (
	"github.com/gorilla/mux"
	"log"
	"net/url"
)
var Router *mux.Router
var UrlBase url.URL
func init() {
	ClearRouter()
	UrlBase.Scheme = "http"
	UrlBase.Host = "localhost"
}
func ClearRouter() {
	Router = mux.NewRouter()
}
func UrlFor(name string, args ...string) *url.URL {
	r := Router.Get(name)
	if r == nil {
		log.Panicf("UrlFor: No such route '%s'\n", name)
	}
	u, err := r.URL(args...)
	if err != nil {
		log.Panicln("UrlFor: " + err.Error())
	}
	return u
}