Golang包管理mod的使用
https://zhuanlan.zhihu.com/p/60703832
1、使用
文件名:excel.go
$ go mod init excel
$ go get github.com/xuri/excelize/v2
$ go run excel.go
#生成.exe
$ go build excel.go
2、excelize库的使用
// 插入图片
if err := f.AddPicture("Sheet1", "A2", "images/team-1.jpg", ""); err != nil {
fmt.Println(err)
}
"alignment" : {
"horizontal": "center"
},
"font" : {
"family" : "Times New Roman",
"bold" : true
}
单元格的设置
···