Skip to content

Commit

Permalink
🔥 Remove test dir, verison length limit
Browse files Browse the repository at this point in the history
  • Loading branch information
nitezs committed May 4, 2024
1 parent 3330412 commit 25e4745
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ subs
logs
data
.env
.vscode/settings.json
.vscode/settings.json
test
4 changes: 0 additions & 4 deletions api/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var staticFiles embed.FS
func SetRoute(r *gin.Engine) {
r.Use(middleware.ZapLogger())

// 使用内嵌的模板文件
tpl, err := template.ParseFS(staticFiles, "static/*")
if err != nil {
log.Fatalf("Error parsing templates: %v", err)
Expand All @@ -33,9 +32,6 @@ func SetRoute(r *gin.Engine) {
r.GET(
"/", func(c *gin.Context) {
version := constant.Version
if len(constant.Version) > 7 {
version = constant.Version[:7]
}
c.HTML(
200, "index.html", gin.H{
"Version": version,
Expand Down
22 changes: 0 additions & 22 deletions test/parser_test.go

This file was deleted.

0 comments on commit 25e4745

Please sign in to comment.