xlsxexport

package module
v0.0.0-...-ec3cfbc Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: GPL-2.0 Imports: 7 Imported by: 0

README

xlsxexport

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Regist

func Regist(name string, r func(field Field) RenderF)

func Render

func Render(ss []Sheet, loader Loader) ([]byte, error)

Types

type Field

type Field struct {
	Title  string `json:"title" yaml:"title"`
	Field  string `json:"field" yaml:"field"`
	Format string `json:"format" yaml:"format"`
	Func   string `json:"func" yaml:"func"`
}

type Loader

type Loader func(index int) ([]interface{}, error)

type RenderF

type RenderF = func(f *excelize.File, sheet, axis string, obj gjson.Result)

type Sheet

type Sheet struct {
	Name   string  `json:"name" yaml:"name"`
	Fields []Field `json:"fields" yaml:"fields"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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