properties
properties copied to clipboard
Java properties scanner for Go
Hello, would be possible to add support to decode into `map[string]interface{}`. I need to decode a properties file into a generic `interface{}` but below code is returning an error. Is...
## Problem: When the `property=${foo}` set in the file is expanded, the returned value is an empty String. Is there a particular reason why we have this approach? Personally, it...
According to properties format documentation https://docs.oracle.com/javase/6/docs/api/java/util/Properties.html this should be loaded as one property: ``` fruits apple, banana, pear, \ cantaloupe, watermelon, \ kiwi, mango ``` but instead it is loaded...
The README states: > Comments and the order of keys are preserved. However, comments at the end of a properties file are not preserved. See https://github.com/magiconair/properties/pull/44 for a failing test....
I use the code like below , when the programe resolve the properties file , printf the message and exit . I don't want to the program exit , just...
Currently the Decode function returns an error if the tag does not contain 'default' and the key does not exist in the properties file. Sometimes it's preferable to do not...
There are some bugs when we specify properties as part of the struct metadata. e.g config file ``` graphite.host=localhost graphite.metric.name=gtest cloud.tenant.name=xxx-qa cloud.keystone.url=https://xxx.zzz.ccc.aaa.xx/v2.0 cloud.swift.username=yyy-bb-ccc cloud.swift.passwd=changeme kafka.topic=ttt kafka.servers=localhost:9092,zzz.dev.yyy.ca:9092 kafka.consumergroup=test kafka.consumeFromStart=true bulk.delete.max_wait=10s log.level=debug...
#48 return an error when a placeholder key is missing if required.
example.conf ``` log_line_prefix='\1\n\t%p\t%r\t%u\t%d\t%t\t%e\t%T\t%S\t%U\t%E\t\t' ``` After I run this golang code: ``` import ( "fmt" "github.com/magiconair/properties" "os" ) func main() { confName := "example.conf" filePros, _ := properties.LoadFile(confName, properties.UTF8) stat, _...
JAVA