html

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HTMLComponentMap map[string]HTMLCompExporter = map[string]HTMLCompExporter{}

Functions

func RegisterComponent

func RegisterComponent(name string, component HTMLCompExporter)

func WriteAttr

func WriteAttr(name string, data interface{}, unit ...string) string

Types

type HTMLCompExporter

type HTMLCompExporter interface {
	Export(report *core.Keireport, comp interface{}) string
}

type HTMLExporter

type HTMLExporter struct {
}

func (*HTMLExporter) Export

func (o *HTMLExporter) Export(report *core.Keireport) ([]byte, error)

func (*HTMLExporter) ExportToFile

func (o *HTMLExporter) ExportToFile(report *core.Keireport, fileName string) error

func (*HTMLExporter) IsHandling

func (o *HTMLExporter) IsHandling(fileName string) bool

type LabelExporter

type LabelExporter struct {
}

func (*LabelExporter) Export

func (o *LabelExporter) Export(report *core.Keireport, comp interface{}) string

Jump to

Keyboard shortcuts

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