goconfig

package module
v0.0.0-...-caa70d3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2017 License: MIT Imports: 5 Imported by: 7

README

Build Status

goconfig

JSON configuration file loaded as structure for golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalPath

func GetLocalPath() (string, error)

GetLocalPath - get the path of current folder

func GetUserHomePath

func GetUserHomePath() (string, error)

GetUserHomePath - get home folder of the current user

func LoadConfig

func LoadConfig(configFile string, config interface{}) (err error)

LoadConfig - load configuration file

func SaveConfig

func SaveConfig(configFile string, config interface{}) error

SaveConfig - saving current config in the file

func SearchForConfigFile

func SearchForConfigFile(filename string, folder string, searchLocally bool, searchUser bool, searchSystem bool) (foundFullPath string, err error)

SearchForConfigFile - search for config file

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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