magiconair / properties

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

Add support for string maps and more complex filtering #20

Closed AnirudhVyas closed 7 years ago

AnirudhVyas commented 7 years ago

Summary -

Added a simple ToMap, ToMapWith & a general FMap -

ToMap( ) - Allows users to transform properties to a generic map data type this allows library creators using magiconair properties library to be used seamlessly without exposing its own data structures to other projects.

ToMapWith allows additional filter closures that may run apart from ToMap to filter out certain properties along with returning a map.

FMap - allows a generic transformer to transform a properties type to any custom data type as needed using a first order function passed in.