xlsxwriter

package module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 7 Imported by: 0

README

xlsxwriter

Cheap/fast/simple XLSX file writer for textual data -- no fancy formatting or graphs

go get github.com/mzimmerman/xlsxwriter

	data := [][]string{
    {"hi","there"},
    {"you","fast"},
  }
	fo, err := os.Create("excel.xlsx")
	if err != nil {
		log.Fatalf("error - %v", err)
		return
	}
	defer fo.Close()
	xw, err := xlsxwriter.New(fo)
	if err != nil {
		log.Fatalf("error - %v", err)
	}
	defer xw.Close()
	err = xw.WriteLines(data)
	if err != nil {
		log.Fatalf("error - %v", err)
	}
}```

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type XLSXWriter

type XLSXWriter struct {
	// contains filtered or unexported fields
}

func New

func New(w io.Writer) (*XLSXWriter, error)

func (*XLSXWriter) Close

func (xw *XLSXWriter) Close() error

func (*XLSXWriter) WriteLine

func (xw *XLSXWriter) WriteLine(data []string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL