From f94c1202afce479d61ff833d8cd05fe417c98288 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 8 Apr 2021 16:38:30 +0530 Subject: enabled golang and other modules in starship, trying to push to this repo after messing everything up --- .config/startpage/server.go | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 .config/startpage/server.go (limited to '.config/startpage/server.go') 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") -} -- cgit v1.2.3