binserde

module
v0.0.0-...-54357be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2022 License: MIT

README

Binserde

A code generator for serializing & deserializing binary data in Go.

Motivation

Currently for serializing & deserializing binary data in Go, there is encoding/binary, but you either have to manually write code for structs without fixed size or use binary.Write() / binary.Read() for structs with fixed size.

So binserde generates efficient code for serializing & deserializing data for structs. The goal is that this should be as fast as handwritten code.

TODO
  • Marshal, unmarshal code.
    • Basic Types(int, float, string, []byte).
    • Embedded structs.
    • Custom types.

Directories

Path Synopsis
cmd
Code generated by binserde(Build: (Commit: 2022-03-30 16:58:22 +0530 (4ddc454), Build: 2022-04-19% 12:42:32 +0530)).
Code generated by binserde(Build: (Commit: 2022-03-30 16:58:22 +0530 (4ddc454), Build: 2022-04-19% 12:42:32 +0530)).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL