1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Cowyo works as a single binary now

Former-commit-id: e3c11510f61564a5f8c6a53d9d9bd768c5fa0f17 [formerly 8c3e635c3cfd2f00acbe4fe4c89b5c9921c3a4ba] [formerly ed287ec86da7ff501a972dcb68f9a0045dcb3798 [formerly 3f3ee6c9fa]]
Former-commit-id: 049fac69946d4e4a7866d28afa0999bac8457840 [formerly 4451a7e8d278d70f1547f4ade77df8f9ef76b0d3]
Former-commit-id: 3a8a4d9ab222d9d23ebf6981e0553a28a123a08f
This commit is contained in:
Zack Scholl
2017-03-22 13:19:00 -06:00
parent 1a670ce298
commit 70616e9d31
3 changed files with 12 additions and 0 deletions

View File

@ -13,6 +13,7 @@ import (
)
func serve(port string) {
gin.SetMode(gin.ReleaseMode)
router := gin.Default()
router.HTMLRender = loadTemplates("index.tmpl")
// router.Use(static.Serve("/static/", static.LocalFile("./static", true)))