decoder

package
v0.0.1-alpha2 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDecoding = errors.New("decoding output error")
)

Functions

This section is empty.

Types

type DefaultDecoder

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

func NewDefaultDecoder

func NewDefaultDecoder() *DefaultDecoder

func (*DefaultDecoder) Decode

func (d *DefaultDecoder) Decode(input string) (interface{}, error)

type JSONDecoder

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

func NewJSONDecoder

func NewJSONDecoder(output interface{}) *JSONDecoder

func (*JSONDecoder) Decode

func (d *JSONDecoder) Decode(input string) (interface{}, error)

type RegExDecoder

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

func NewRegExDecoder

func NewRegExDecoder(regex string) *RegExDecoder

func (*RegExDecoder) Decode

func (d *RegExDecoder) Decode(input string) (interface{}, error)

Jump to

Keyboard shortcuts

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