Adron
5/29/2017 - 10:24 PM

Creating a simple routes data structure to store routes in.

Creating a simple routes data structure to store routes in.

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

type Routes []Route
var routes = Routes{
	Route{
		"Index",
		"GET",
		"/",
		HandleThis,
	},
}