properties icon indicating copy to clipboard operation
properties copied to clipboard

Java properties scanner for Go

Results 25 properties issues
Sort by recently updated
recently updated
newest added

Is there a way to change values in a config struct/use the default values and write them back into a properties file?

This pull request allows adding some private fields on properties structs without having problems, only marking this field as skipped with a specific tag as the test example below.: ```go...

I'm doing the following test: ``` // Set a key to "a=b" and value "c" p := properties.NewProperties() p.Set("a=b", "c") buf := new(bytes.Buffer) p.Write(buf, properties.UTF8) println(buf.String()) ``` I'd espect the...

In case the properties file has a logical division of the configurations, I'd like to decode to several dedicated structs. **For example:** Given the following `config.properties` file ``` app.port=3000 db.host=127.0.0.1...

This behavior is not observed with Java `Properties#load(InputStream)`. In that case, quotes are not preserved in the deserialized value.

Given a properties file consisting of: ``` Test = foo,bar,baz ``` A config struct of ``` type Config struct { Test []string `properties:"Test"` } ``` And the following decoding ````...

This pull request addresses a use case for reading and updating properties files that have: * commented out sample values for key/value entries that need to be preserved. eg: ```...

This change leaves the escape character backslash '\' when the backslash isn't precede one of " :=fnrt" that need escaping. Currently, any backslash that isn't precede one of the escaped...

We internally use the functionality of overriding loaded properties with prefixed environment variables. We convert the names of these env variables to property keys with a simple replacement scheme. This...

Add feature to Decode/Unmarshal configuration into a `map[string]interface{}`. This functionality is available in HCL, JSON, YAML and TOML decoders, as [we can see in Viper](https://github.com/doublerebel/viper/blob/cca2c805116e59a0eff0b007aa9124a03517dc36/util.go#L137). This change [enables Viper to...