コード例 #1
0
ファイル: main.go プロジェクト: Nivl/api.melvin.la
func main() {
	app.InitContex()
	defer app.GetContext().Destroy()

	api.EnsureIndexes()
	r := api.GetRouter()
	port := ":" + app.GetContext().Params.Port
	http.ListenAndServe(port, r)
}
コード例 #2
0
ファイル: articles_test.go プロジェクト: Nivl/api.melvin.la
func init() {
	app.InitContex()
	// defer app.GetContext().Destroy()
}