confread

package
v0.0.0-...-1f21cb3 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("config file not found")
View Source
var Unmarshalers = []Unmarshaler{
	yaml.Unmarshal,
	toml.Unmarshal,
	jsonex.Unmarshal,
}

Functions

func Read

func Read(fileName string, out interface{}, positions ...string) error

func TryAllUnmarshalers

func TryAllUnmarshalers(source []byte, out interface{}) (err error)

Types

type Unmarshaler

type Unmarshaler func(in []byte, out interface{}) (err error)

Jump to

Keyboard shortcuts

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