package main
import (
"log"
"github.com/user0608/json2excel"
)
func main(){
var data=`[{
"nombre":"Kevin",
"apellido":"Saucedo",
"edad":25,
"estado":true
}]`
req, err := json2excel.NewRequest([]byte(data))
if err != nil {
log.Fatalln(err)
}
converter := json2excel.NewJSON2ExcelConverter()
if err := converter.SaveExcel(req, "file.xlsx"); err != nil {
log.Fatalln(err)
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
user0608/json2excel
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|