Documentation
¶
Index ¶
- Constants
- func Exists(name string) bool
- func ExistsIsDir(name string) bool
- func PrefixOptionReadConfdig(prefix *string, filename string, lCfg interface{}) (err error)
- func PrintErrorJson(js string, err error) (rv string)
- func ProcessENV(curVal, sfldName string) string
- func ProcessHome(fn string) (outFn string)
- func ReadAndRemoveComents(fn string) (buf []byte, err error)
- func ReadFile(filename string, lCfg interface{}) (err error)
- func SetFromEnv(s interface{}) (err error)
- func SetFromEnv2(typ reflect.Type, val reflect.Value) (err error)
- func StripComments(file *os.File) (rv []byte, err error)
- func StripPrefix(prefix, key string) string
- type StateType
Constants ¶
View Source
const ( S0 StateType = 0 // initial state S1 = 1 // Escape symbol inside string S2 = 2 // first slash S3 = 3 // Star met inside multi line SS = 4 // String SC = 5 // Comment SMC = 6 // Multiline comment )
Variables ¶
This section is empty.
Functions ¶
func ExistsIsDir ¶
ExistsIsDir returns true if a direcotry exists.
func PrefixOptionReadConfdig ¶
func PrintErrorJson ¶
func ProcessENV ¶
func ProcessHome ¶
func ReadAndRemoveComents ¶ added in v1.0.10
Will not work, has to parse JSON and look for strings, '.*', ".*" and process escapes, then look for comments.
func SetFromEnv ¶
func SetFromEnv(s interface{}) (err error)
func StripPrefix ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.