config

package module
v0.0.0-...-76ec47c Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: GPL-3.0 Imports: 6 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
}

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