tinylib / msgp

A Go code generator for MessagePack / msgpack.org[Go]
MIT License
1.77k stars 189 forks source link

Output size configuration #307

Open artvel opened 2 years ago

artvel commented 2 years ago

Is it possible to configure the output of tynilib to achieve a result like "github.com/vmihailenco/msgpack/v5" with:

    var buf bytes.Buffer
    enc := msgpack.NewEncoder(&buf)
    enc.UseArrayEncodedStructs(true) // <---------
    enc.UseCompactInts(true) // <---------
    enc.UseCompactFloats(true) // <---------
    _ = enc.Encode(val)

to keep the output as low as possible..?