Show HN: Code generation tool for quick struct content comparison
This is a code generation tool for QUICK struct content compare or hash computation. Basically it will generate an method which follow the MessagePack Spec but :
That is the following 2 structs with different member name
For more: see test cases
But with the same name and content of exported member, will produce the same bytes array:
the order of struct member is sorted by struct tag (if not, use name)
You can read more about MessagePack in the wiki, or at msgpack.org. The command will generate serialization methods for all exported type declarations in the file. By default, the code generator will only generate and method
This lib is inspired by Most Code is diverted from but It’s an total different lib for usage.
Source: github.com