import ( "github.com/tinylib/msgp/msgp" "bytes" ) func main() { b := new(bytes.Buffer) writer := msgp.NewWriter(b) err := writer.WriteInt(42) if err != nil { // handle error } }
import ( "github.com/tinylib/msgp/msgp" "bytes" ) func main() { b := new(bytes.Buffer) writer := msgp.NewWriter(b) err := writer.WriteInt(-1) if err != nil { // handle error } }The package library is github.com/tinylib/msgp.