name: github.com/cezarguimaraes/go-binenc-gen
description: go-binenc-gen is a tool to automate the creation of binary serialization methods.
Given the name of a Go source file containing structs definitions, go-binenc-gen
will create a new self-contained Go source file implementing

The file is created in the same package and directory as the package that defines
T. It has helpful defaults designed for use with go generate.

The goal of the tool is to generate extremely fast binary serialization code by
forfeiting the convenience of runtime reflection enabled libraries, such as
binary or gob.

For example, given this snippet,

running this command

in the same directory will create the file example_encoding.go, in package example,
containing definitions of

These methods will serialize Header and Request objects, using a single allocation
per WriteTo. For Reads, there will be as many allocations as pointers and slices in
the struct:

Note that the serialization of Header objects during the serialization of a Request
is inlined. For that reason, recursive definitions are not yet supported.
license_spdx: BSD-3-Clause-Open-MPI
version: v0.2.1
spec_version: 1.0
home_url: https://github.com/cezarguimaraes/go-binenc-gen
news_url: https://libraries.io/go/github.com%2Fcezarguimaraes%2Fgo-binenc-gen/versions.atom
date: 2022-12-28
about_resource: NONE
libraries_io_url: https://libraries.io/go/github.com%2Fcezarguimaraes%2Fgo-binenc-gen?number=v0.2.1
vcs_tool: git
vcs_repository: https://github.com/cezarguimaraes/go-binenc-gen
vcs_branch: main
