encoder

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoder

type Encoder interface {
	Encode(issues []result.Issue) error
}

func NewJSONEncoder added in v0.5.0

func NewJSONEncoder(w io.Writer, ident string) Encoder

func NewPotEncoder

func NewPotEncoder(cfg *config.Config, w io.Writer) Encoder

type JSONFile added in v0.5.0

type JSONFile []JSONItem

func (JSONFile) MarshalJSON added in v0.5.0

func (f JSONFile) MarshalJSON() ([]byte, error)

func (*JSONFile) UnmarshalJSON added in v0.5.0

func (f *JSONFile) UnmarshalJSON(data []byte) error

type JSONItem added in v0.5.0

type JSONItem struct {
	Key     string
	Message JSONMessage
}

type JSONMessage added in v0.5.0

type JSONMessage map[string]string

func (JSONMessage) MarshalJSON added in v0.5.0

func (m JSONMessage) MarshalJSON() ([]byte, error)

func (*JSONMessage) UnmarshalJSON added in v0.5.0

func (m *JSONMessage) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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