config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Signals struct {
		StopSignal syscall.Signal `yaml:"stop"`
		ContSignal syscall.Signal `yaml:"cont"`
	} `yaml:"signals"`
	Variables map[string]interface{} `yaml:"variables"`
	Widgets   []ygs.WidgetConfig     `yaml:"widgets"`
}

Config represents the main configuration.

func LoadFile

func LoadFile(filename string) (*Config, error)

LoadFile loads and parses config from file.

func Parse

func Parse(data []byte, source string) (*Config, error)

Parse parses config.

type SnippetConfig added in v1.0.0

type SnippetConfig struct {
	Variables map[string]interface{} `yaml:"variables"`
	Widgets   []ygs.WidgetConfig     `yaml:"widgets"`
}

SnippetConfig represents the snippet configuration

Jump to

Keyboard shortcuts

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