Goverter
goverter is a tool for creating type-safe converters. All you have to do is create an interface and execute goverter. The project is meant as alternative to jinzhu/copier that doesn't use reflection.
Getting Started ᛫ Installation ᛫ CLI ᛫ Config
Features
- Fast execution: No reflection is used at runtime
- Automatically converts builtin types: slices, maps, named types, primitive types, pointers, structs with same fields
- Enum support
- Deep copies per default and supports shallow copying
- Customizable: You can implement custom converter methods
- Clear errors when generating the conversion methods if
- the target struct has unmapped fields
- types cannot be converted without losing information