08 2021 档案

摘要:# 1. 文件夹从暂存区中删除 git rm -r --cached file1 file2 file3... # 2. 提交修改 git commit -m '....' # 3. 推送 git push origin master 阅读全文
posted @ 2021-08-31 14:08 Silent-Cxl 阅读(110) 评论(0) 推荐(0)
摘要:package validator_web import ( "errors" "github.com/gin-gonic/gin/binding" "github.com/go-playground/locales/en" "github.com/go-playground/locales/zh" 阅读全文
posted @ 2021-08-24 18:19 Silent-Cxl 阅读(548) 评论(0) 推荐(1)
摘要:时间字段的结构体使用 LocalTime 类型即可 package tool import ( "database/sql/driver" "fmt" "goskeleton/app/global/variable" "time" ) type LocalTime struct { time.Tim 阅读全文
posted @ 2021-08-24 13:42 Silent-Cxl 阅读(61) 评论(0) 推荐(0)
摘要:入门 GO,where 条件组装 import ( "fmt" "strings" ) type WhereQuery struct { Filter bool QuerySql string // where sql Queries []string // where 条件 QueryParams 阅读全文
posted @ 2021-08-24 11:45 Silent-Cxl 阅读(131) 评论(0) 推荐(0)
摘要:package log import ( "bufio" "fmt" "io" "os" "regexp" "strconv" "strings" "time" ) var ( filepath = "./d.log" insertNum = 0 ) type Commands struct { L 阅读全文
posted @ 2021-08-16 10:25 Silent-Cxl 阅读(494) 评论(0) 推荐(0)