conf

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: MIT Imports: 10 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindDirOfFile added in v1.1.4

func FindDirOfFile(fileName, srcFile string) string

ReadConfigFile read config file first from where the executable file lies then where the source code lies, or it's parent directory recursively

func Ini2Object

func Ini2Object(fileName string, object interface{}) error

Ini2Object ini config to object

func ReadConfigFile

func ReadConfigFile(fileName, srcFile string) []byte

ReadConfigFile read config file first from where the executable file lies then where the source code lies, or it's parent directory recursively

func Yaml2Object

func Yaml2Object(fileName string, object interface{}) error

Yaml2Object yaml config file to an object

Types

This section is empty.

Jump to

Keyboard shortcuts

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