encoding

package
v0.0.0-...-c864ae1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: BSD-2-Clause, BSD-3-Clause, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UndefinedOutput = ""
	CsvOutput       = "CSV"
	JsonOutput      = "JSON"
	ExcelOutput     = "EXCEL"
)

Variables

View Source
var NullEncoder = new(nullEncoder)

Functions

This section is empty.

Types

type Builder

type Builder struct {
	loggers.ContainedLogger
	// contains filtered or unexported fields
}

func (*Builder) Build

func (b *Builder) Build() Encoder

func (*Builder) ForOutputType

func (b *Builder) ForOutputType(encoderType OutputType) *Builder

func (*Builder) WithLogHandler

func (b *Builder) WithLogHandler(logHandler logging.Logger) *Builder

func (*Builder) WithOutputPath

func (b *Builder) WithOutputPath(outputPath string) *Builder

type Encoder

type Encoder interface {
	Encode(solution *solution.Solution) error
}

type Marshaler

type Marshaler interface {
	Marshal(solution *solution.Solution) ([]byte, error)
}

type OutputType

type OutputType string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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