aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-10-21 09:11:15 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2020-10-21 09:11:15 +0530
commit699486cbebc104b26fd3bc3d521c47a4827f2909 (patch)
tree79a0a9f98f0166f23bde4412e4682d25f7aceb31 /main.go
parentbb826f1efc7e0c88790acfb8a0a65057f0f2644f (diff)
minor changes, maybeHEADmain
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 5be5f68..528eb09 100644
--- a/main.go
+++ b/main.go
@@ -4,7 +4,7 @@ import (
// "log"
"net/http"
"os"
-
+ "fmt"
"github.com/gin-gonic/gin"
_ "github.com/heroku/x/hmetrics/onload"
)
@@ -37,11 +37,11 @@ func main() {
router.GET("/new", func(c *gin.Context) {
c.HTML(http.StatusOK, "new.index.html", nil)
+ name := c.PostFormArray("name")
})
router.GET("/site-down", func(c *gin.Context) {
c.HTML(http.StatusOK, "maintain.html", nil)
})
-
router.Run(":" + port)
}