printer

package
v1.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ReplacedStr = `"GSA_PACKAGE_DATA"`

Variables

This section is empty.

Functions

func HTML added in v1.0.4

func HTML(r *result.Result) []byte

func JSON added in v1.0.4

func JSON(r *result.Result, options *JSONOption) []byte

func Svg added in v0.3.0

func Svg(r *result.Result, options *SvgOption) []byte

func Text

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

Types

type CommonOption added in v0.3.0

type CommonOption struct {
	HideSections bool
	HideMain     bool
	HideStd      bool
}

type JSONOption added in v1.0.4

type JSONOption struct {
	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