decoder

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package decoder provides a set of decoders to decode the output of a command

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type JSONDecoder

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

func NewJSONDecoder

func NewJSONDecoder() *JSONDecoder

func (*JSONDecoder) Decode

func (d *JSONDecoder) Decode(input string) (types.M, 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) (types.M, error)

Jump to

Keyboard shortcuts

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