摘要: 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 一大二王里 阅读(476) 评论(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 一大二王里 阅读(1216) 评论(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 一大二王里 阅读(3012) 评论(0) 推荐(0) 编辑
摘要: 里面不能包含任何中文变量 <div> <el-dialog title="提示" :visible.sync="show" width="400px" :append-to-body="true" :show-close="false" :close-on-click-modal="false" : 阅读全文
posted @ 2020-05-20 21:24 一大二王里 阅读(282) 评论(0) 推荐(0) 编辑