alecthomas / go_serialization_benchmarks

Benchmarks of Go serialization methods
https://alecthomas.github.io/go_serialization_benchmarks/
1.56k stars 158 forks source link

multi: Move each serializer into its own package #141

Closed matheusd closed 3 months ago

matheusd commented 3 months ago

This PR moves each serializer (or set of related serializers) into its own internal package.

This helps organize the code and makes it more obvious what is needed to make each serializer work.

Some serializers (such as the shamaton ones) hook directly into the structure, therefore a copy of it (instead of a direct reference) needs to be used.

The standard library serializers are moved to the stdlib package.