magiconair / properties

Java properties scanner for Go
BSD 2-Clause "Simplified" License
323 stars 77 forks source link

The default value after expansion is an empty String #48

Open haroon-sheikh opened 4 years ago

haroon-sheikh commented 4 years ago

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 would be much easier to debug if it was just returned as is when not found.

Expected: properties.Get("property") = "${foo}"

Actual: properties.Get("property") = ""