config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NoBytesWrittenError = "No bytes written to file"

NoBytesWrittenError is an error message for no bytes written

View Source
const NoConfigWriteError = "No config to write"

NoConfigWriteError is an error message for no config file to write to

Variables

This section is empty.

Functions

func WriteConfig

func WriteConfig(config *Config, writer io.Writer) error

WriteConfig writes configurations to file

Types

type Config

type Config struct {
	Clipboard bool
	RefineNew string `yaml:"refine-new"`
}

Config describes a set of properties configurable by user

func ReadConfig

func ReadConfig(reader io.Reader) (*Config, error)

ReadConfig parses config file and generates Config object containing the configurations

Jump to

Keyboard shortcuts

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