config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTomlCoder

func NewTomlCoder() *tomlCoder

Types

type Coder

type Coder interface {
	Name() string
	DecodeFile(string, interface{}) error
	Decode(string, interface{}) error
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func GetConfigHandler

func GetConfigHandler() *Handler

func (*Handler) AddAfter

func (h *Handler) AddAfter(f func(interface{}))

func (*Handler) ClearAfter

func (h *Handler) ClearAfter()

func (*Handler) Init

func (h *Handler) Init(file string, config interface{}) error

func (*Handler) ParseFileWithName

func (h *Handler) ParseFileWithName(name, file string, config interface{}) error

func (*Handler) ParseWithName

func (h *Handler) ParseWithName(name, data string, config interface{}) error

func (*Handler) RunAfter

func (h *Handler) RunAfter(config interface{})

Jump to

Keyboard shortcuts

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