decoders

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFile

func DecodeFile(filename string, value interface{}) error

func FindAndDecodeFile

func FindAndDecodeFile(basename string, value interface{}) error

func RegisterDecoder

func RegisterDecoder(extension string, decoderGenerator DecoderGenerator)

Types

type Decoder

type Decoder interface {
	Decode(value interface{}) error
}

type DecoderGenerator

type DecoderGenerator func(r io.Reader) Decoder

Jump to

Keyboard shortcuts

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