config

package
v0.0.0-...-e0096d9 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Font  string `toml:"font"`
	Theme *Theme `toml:"theme"`
}

Configuration holds configuration for Mert.

func Load

func Load(file string) (*Configuration, error)

Load returns a Configuration from reading the specified file (a toml file).

func New

func New() *Configuration

New returns a Configuration with default values

type Theme

type Theme struct {
	Foreground     string   `toml:"foreground"`
	ForegroundBold string   `toml:"foreground_bold"`
	Background     string   `toml:"background"`
	Cursor         string   `toml:"cursor"`
	Palette        []string `toml:"palette"`
}

Theme holds the Mert theme

Jump to

Keyboard shortcuts

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