excel

package
v0.0.0-...-d21b0b6 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllColumnName

func GetAllColumnName(i interface{}) (ret []string)

func GetAllColumnNameInterface

func GetAllColumnNameInterface(i interface{}) (ret []interface{})

func GetAllColumnValue

func GetAllColumnValue(i interface{}) (ret []interface{})

func SaveExcelTo

func SaveExcelTo(filePath, sheet string, rows []interface{}) error

Types

type ColMate

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

func (ColMate) Tag

func (k ColMate) Tag() string

func (ColMate) Val

func (k ColMate) Val() string

type RowMate

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

func ReflectRomMate

func ReflectRomMate(i interface{}) *RowMate

func (*RowMate) Column

func (m *RowMate) Column(i interface{}) ColMate

type Writer

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

func NewExcel

func NewExcel(sheet string, row interface{}) (*Writer, error)

func (*Writer) Append

func (w *Writer) Append(rows []interface{}) error

func (*Writer) SaveTo

func (w *Writer) SaveTo(filePath string) error

Jump to

Keyboard shortcuts

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