xlsx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Simple = "simple"
	Print  = "print"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Excel

type Excel struct {
	File           *excelize.File
	Style          style
	SwaggerSpec    *spec.Swagger
	IndexSheetName string
	WorkSheetName  string
	Context        *context
}

Excel to save

func New

func New() *Excel

New returns an Excel struct instance

type Template added in v0.2.0

type Template interface {
	// GetExcel returns Excel that the template has
	GetExcel() *Excel
	// Generate generates Excel from Open API
	Generate(*spec.Swagger) error
	// CreateIndexSheet generates index sheet
	CreateIndexSheet() error
	// CreateAPISheet generates an API sheet for each index
	CreateAPISheet(path string, method string, operation *spec.Operation, definitions spec.Definitions, sheetName int) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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