printer

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const ReplacedStr = `"GSA_PACKAGE_DATA"`

Variables

View Source
var ErrTemplateInvalid = errors.New("template invalid")

Functions

func HTML added in v1.0.4

func HTML(r *result.Result, writer io.Writer) error

func JSON added in v1.0.4

func JSON(r *result.Result, options *JSONOption) error

func Svg added in v0.3.0

func Svg(r *result.Result, options *SvgOption) error

func Text

func Text(r *result.Result, options *CommonOption) error

Types

type CommonOption added in v0.3.0

type CommonOption struct {
	Writer       io.Writer
	HideSections bool
	HideMain     bool
	HideStd      bool
}

type JSONOption added in v1.0.4

type JSONOption struct {
	Writer     io.Writer
	Indent     *int
	HideDetail bool
}

type SvgOption added in v0.3.0

type SvgOption struct {
	CommonOption
	Width       int
	Height      int
	MarginBox   int
	PaddingBox  int
	PaddingRoot int
}

Jump to

Keyboard shortcuts

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