Skip to content

MessagePack Serializer for Golang. / msgpack.org[Go]

License

Notifications You must be signed in to change notification settings

nnabeyang/go-msgpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-msgpack

go-msgpack is a package of MessagePack encoding for Go.

Quick Start

package main

import (
	gomsgpack "github.com/nnabeyang/go-msgpack"
)

type Pair struct {
	X int
	Y int
}

func main() {
	v := Pair{X: 1, Y: 2}
	data, err := gomsgpack.Marshal(v, false)
	if err != nil {
		panic(err)
	}
	var r Pair
	if err := gomsgpack.Unmarshal(data, &r); err != nil {
		panic(err)
	}
}

License

go-msgpack is published under the MIT License, see LICENSE.

Author

Noriaki Watanabe@nnabeyang

About

MessagePack Serializer for Golang. / msgpack.org[Go]

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages