config

package
v0.0.0-...-b41606a Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2020 License: BSD-3-Clause Imports: 3 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 {
	Fields map[string][]Field
}

Config the basic structure configuration.

func Default

func Default() Config

Default returns copy of default config.

func (*Config) Decode

func (c *Config) Decode(r io.Reader) error

Decode the YAML settings from reader.

func (Config) Encode

func (c Config) Encode(w io.Writer) error

Encode the YAML settings to writer.

type Field

type Field struct {
	Group string
	// Params is a set of field parameters.
	Params vcard.Params
	// Template golang text template string.
	Template string
}

Field a field contains a value and some parameters.

Jump to

Keyboard shortcuts

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