template

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Presenter

type Presenter struct {
	// contains filtered or unexported fields
}

Presenter is an implementation of presenter.Presenter that formats output according to a user-provided Go text template.

func NewPresenter

func NewPresenter(matches match.Matches, packages []pkg.Package, context pkg.Context, metadataProvider vulnerability.MetadataProvider, appConfig interface{}, pathToTemplateFile string) *Presenter

NewPresenter returns a new template.Presenter.

func (*Presenter) Present

func (pres *Presenter) Present(output io.Writer) error

Present creates output using a user-supplied Go template.

Jump to

Keyboard shortcuts

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