config

package
v0.0.58 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(path string, out Cfg, varPattern *VarPattern)

Types

type Cfg

type Cfg interface {
	GetVar() []VarConfig
	GetStylesDef() []string
	SetStyles(*style.Styles)
}

type ConfigLoader

type ConfigLoader struct {
	Var    []VarConfig
	Config interface{}
	// contains filtered or unexported fields
}

type VarConfig

type VarConfig struct {
	Name  string `yaml:"name"`
	Value string `yaml:"value"`
}

type VarPattern

type VarPattern struct {
	Open  string
	Close string
}

func DefaultVarPattern

func DefaultVarPattern() *VarPattern

func NewVarPattern

func NewVarPattern(open string, close string) *VarPattern

Jump to

Keyboard shortcuts

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