Skip to content

zachcr-ws/gocsv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Gocsv

A data to csv file productor tool.

Installation

go get github.com/ZachBergh/gocsv

Usage

import "github.com/ZachBergh/gocsv"

/* 
Params:
    fileName string: csv file's name 
    path string: csv file's path
    header []string: csv file's header
        if len(header) <= 0 , will create default header
    data []interface{}: source data
*/
fileName := "data.csv"
path := ""
header := []string{}
data := SourceData

err := gocsv.NewCsvFile(fileName, path, header, data)
if err != nil {
    return err
}

Features

  • Auto Create
  • Auto Header
  • Interface struct

About

create csv file from Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages