msgp

command module
v1.1.66 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

MessagePack Code Generator

Based on github.com/tinylib/msgp

Documentation

Overview

msgp is a code generation tool for creating methods to serialize and de-serialize Go data structures to and from MessagePack.

This package is targeted at the `go generate` tool. To use it, include the following directive in a go source file with types requiring source generation:

//go:generate msgp

The go generate tool should set the proper environment variables for the generator to execute without any command-line flags. However, the following options are supported, if you need them:

-o = output file name (default is {input}_gen.go)
-file = input file name (or directory; default is $GOFILE, which is set by the `go generate` command)
-io = satisfy the `msgp.Decodable` and `msgp.Encodable` interfaces (default is true)
-marshal = satisfy the `msgp.Marshaler` and `msgp.Unmarshaler` interfaces (default is true)
-tests = generate tests and benchmarks (default is true)

For more information, please read README.md, and the wiki at github.com/tinylib/msgp

Directories

Path Synopsis
This package is the support library for the msgp code generator (http://github.com/algorand/msgp).
This package is the support library for the msgp code generator (http://github.com/algorand/msgp).
tests module

Jump to

Keyboard shortcuts

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