config

package
v0.0.0-...-f1f97c7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorWriteFileNotSet means not filename set when writing config
	ErrorWriteFileNotSet = errors.New("config-write-file-not-set")
	// ErrorWriteFileNotSupported means writing config to unknown file type
	ErrorWriteFileNotSupported = errors.New("config-write-file-not-supported")
)
View Source
var (
	// ErrorNoConfigFile means config file is not found
	ErrorNoConfigFile = errors.New("config file is not found")
)
View Source
var (
	// ErrorNoReadHandler means no handler to read config file
	ErrorNoReadHandler = errors.New("unsupported config file")
)

Functions

func Owner

func Owner(cfg *object.Config) *object.Author

Owner get first author in config

func Read

func Read() (*object.Config, error)

Read read config data from file

func Write

func Write(cfg *object.Config, file string) error

Write write config to file, If file is not set, write to cfg srcfile

Types

This section is empty.

Jump to

Keyboard shortcuts

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