config

package
v0.0.0-...-43028c6 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadDirectory

func LoadDirectory(dirPath string) (map[string]interface{}, error)

LoadDirectory loads a whole directory of .yaml config files.

func LoadDirectoryMap

func LoadDirectoryMap(dirPath string) (map[string]map[string]interface{}, error)

LoadDirectoryMap loads a whole directory of .yaml config files.

func LoadDirectorySlice

func LoadDirectorySlice(dirPath string) (map[string][]interface{}, error)

LoadDirectorySlice loads a whole directory of .yaml config files.

func LoadFile

func LoadFile(path string) (interface{}, error)

LoadFileSlice loads a yaml config file which is a list

func LoadFileMap

func LoadFileMap(path string) (map[string]interface{}, error)

LoadFileMap loads a yaml config file which has a hierachical structure

func LoadFileSlice

func LoadFileSlice(path string) ([]interface{}, error)

LoadFileSlice loads a yaml config file which is a list

Types

This section is empty.

Jump to

Keyboard shortcuts

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