cfg

package
v0.0.0-...-fede6de Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFile

func ToFile(filePath string, cfg *Config) error

ToFile marshals a configuration object to the given filepath using the yaml format

Types

type Config

type Config struct {
	HistoryFile string
}

func FromFile

func FromFile(path string) (*Config, error)

FromFile returns a configuration object from a given file path and errors if the file does not exists of it the file contexts can't be unmarshaled. expected format is yaml.

Jump to

Keyboard shortcuts

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