config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const LatestVersion = cfgv3.Version

LatestVersion points to the latest version of the config format.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

IsNotFound returns true if an error is related to a file not found

func NotFoundError

func NotFoundError(err error) error

NotFoundError wraps the given error and makes it into a not found one

func ReadFile added in v0.3.0

func ReadFile(path, libPath string) (cfgv3.Config, error)

ReadFile takes a path and returns the parsed config file.

If the config file needs to have access to additional libraries, their location can be specified with cfgDirs.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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