diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:38:30 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-04-08 16:38:30 +0530 |
commit | f94c1202afce479d61ff833d8cd05fe417c98288 (patch) | |
tree | 8fd0da2ca4fc57f90c194757cb77628edc0b9852 /.config/startpage/server.go | |
parent | 5db7f0e0671acfb9d03145d21a3645c80efc167e (diff) |
enabled golang and other modules in starship, trying to push to this repo after messing everything up
Diffstat (limited to '.config/startpage/server.go')
-rw-r--r-- | .config/startpage/server.go | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/.config/startpage/server.go b/.config/startpage/server.go deleted file mode 100644 index b2eef0c..0000000 --- a/.config/startpage/server.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "github.com/gin-gonic/gin" - "net/http" - "time" -) - -func main() { - router := gin.New() - router.LoadHTMLGlob("/home/zt/.config/startpage/index.html") - router.Static("main", "/home/zt/.config/startpage/") - - router.GET("/", func (c *gin.Context) { - time := time.Now().Format("15:04 02 Jan (Monday)") - c.HTML(http.StatusOK, "index.html", gin.H{ - "time": time, - }) - }) - - router.Run(":8081") -} |