Categorygithub.com/Alexander-r/msgpack
repositorypackage
0.0.0-20231219160401-232bcaf943b5
Repository: https://github.com/alexander-r/msgpack.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# README

MessagePack encoding for Golang

Features

Quickstart

import "github.com/Alexander-r/msgpack"

func ExampleMarshal() {
    type Item struct {
        Foo string
    }

    b, err := msgpack.Marshal(&Item{Foo: "bar"})
    if err != nil {
        panic(err)
    }

    var item Item
    err = msgpack.Unmarshal(b, &item)
    if err != nil {
        panic(err)
    }
    fmt.Println(item.Foo)
    // Output: bar
}