摘要:
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 阅读全文
摘要:
开始解析文件 var reg_name = regexp.MustCompile(`filename="(.+)"`) func fileinfo(c *gin.Context) (filename string, flag []byte, rd *bufio.Reader) { rd = bufi 阅读全文
摘要:
gorm 结构 type Thgl struct { Model Code string `gorm:"size(10);index:pre_idx" json:"code"` Next MyJson `json:"next"` //子Bom Files MyJson `json:"files"` 阅读全文