decode

package
v3.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, ext string, i interface{}) error

Decode decodes r according to ext's registered decoder, into i.

func ExplodeFilename

func ExplodeFilename(filename string) (basename, ext string, ok bool)

ExplodeFilename returns the base name, extension, and a boolean indicating whether the extension is decodable.

func Extensions

func Extensions() []string

Extensions returns a list of supported extensions.

func OpenAny

func OpenAny(fs filesystem.Filesystem, base string) (f filesystem.File, ext string, err error)

OpenAny attempts to open base + any supported extension. It returns the open file, the matched extension, or an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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