摘要: f, err := os.OpenFile(src, os.O_RDONLY, os.ModePerm) if err != nil { appG.Response_m(11111, "文件不存在", err) return } defer f.Close() buf := bufio.NewRea 阅读全文
posted @ 2020-05-20 22:03 一大二王里 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 开始解析文件 var reg_name = regexp.MustCompile(`filename="(.+)"`) func fileinfo(c *gin.Context) (filename string, flag []byte, rd *bufio.Reader) { rd = bufi 阅读全文
posted @ 2020-05-20 21:57 一大二王里 阅读(1208) 评论(0) 推荐(0) 编辑
摘要: gorm 结构 type Thgl struct { Model Code string `gorm:"size(10);index:pre_idx" json:"code"` Next MyJson `json:"next"` //子Bom Files MyJson `json:"files"` 阅读全文
posted @ 2020-05-20 21:35 一大二王里 阅读(2982) 评论(0) 推荐(0) 编辑
摘要: package mian import "C" //export Min func Min(a,b) int32{ if a>b{ return int32(b) } return int32(a) } 编译命令 go build -ldflags "-s -w" -buildmode=c-shar 阅读全文
posted @ 2019-10-14 18:44 一大二王里 阅读(947) 评论(0) 推荐(0) 编辑
摘要: npm initnpm i webpack webpack-cli vue vue-loader css-loader style-loader babel-loader babel-core html-webpack-plugin vue-template-compiler -s const pa 阅读全文
posted @ 2019-09-19 15:50 一大二王里 阅读(1502) 评论(0) 推荐(0) 编辑