Mapify

Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public. Build Go Reference Go Report Card codecov

Highly configurable struct to map converter. Also converts maps into other maps.

Features (work in progress)

  • configuration outside the struct
    • could be in a different package – separation of concerns
    • no need to modify original structs (by adding tags, implementing methods etc.)
    • behaviour as a code – you provide code which will be run during conversion
  • ability to rename keys during conversion
  • ability to omit keys based on field name, value or tag etc.
  • ability to map elements during conversion

GitHub

View Github