Skip to content

Commit 6b9d418

Browse files
committed
fmt
1 parent 57dcb04 commit 6b9d418

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

main.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ func web() {
6161
})
6262
})
6363
r.GET("/view/*path", func(c *gin.Context) {
64-
c.File(filepath.Join(conf.GoFile,filepath.Clean(c.Param("path"))))
64+
c.File(filepath.Join(conf.GoFile, filepath.Clean(c.Param("path"))))
6565
})
6666
r.GET("/download/*path", func(c *gin.Context) {
67-
cPath :=filepath.Clean(c.Param("path"))
68-
c.FileAttachment(filepath.Join(conf.GoFile,cPath), filepath.Base(cPath))
67+
cPath := filepath.Clean(c.Param("path"))
68+
c.FileAttachment(filepath.Join(conf.GoFile, cPath), filepath.Base(cPath))
6969
})
7070
r.GET("/d/*path", func(c *gin.Context) {
7171
rawPath := c.Param("path")
@@ -226,8 +226,8 @@ func main() {
226226
if err == nil {
227227
conf.GoFile = cwd
228228
}
229-
}
230-
conf.GoFile = filepath.Clean(conf.GoFile)+"/"
229+
}
230+
conf.GoFile = filepath.Clean(conf.GoFile) + "/"
231231
fmt.Println("Run Directory:" + conf.GoFile)
232232
fmt.Println("goFile Port is " + conf.GoFilePort)
233233
web()

0 commit comments

Comments
 (0)