config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFile

func LoadFile(filePath string, obj interface{}) error

func RegisterAdapter

func RegisterAdapter(name string, adapter Configer)

Types

type Configer

type Configer interface {
	Unmarshal(data []byte, obj interface{}) error
	Marshal(obj interface{}) ([]byte, error)
}

Directories

Path Synopsis
adapter
examples

Jump to

Keyboard shortcuts

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