Skip to content

user0608/json2excel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JSON2EXCEL

    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)
        }
    }    

About

Json to Excel

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages