Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

msgpack.org[Go] MessagePack encoding for Golang

License

NotificationsYou must be signed in to change notification settings

vmihailenco/msgpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build StatusPkgGoDevDocumentationChat

msgpack is brought to you by ⭐uptrace/uptrace.Uptrace is anopen source APM and blazingly fastdistributed tracing tool poweredby OpenTelemetry and ClickHouse. Give it a star as well!

Resources

Features

Installation

msgpack supports 2 last Go versions and requires support forGo modules. So make sure to initialize a Go module:

go mod init github.com/my/repo

And then install msgpack/v5 (notev5 in the import; omitting it is a popular mistake):

go get github.com/vmihailenco/msgpack/v5

Quickstart

import"github.com/vmihailenco/msgpack/v5"funcExampleMarshal() {typeItemstruct {Foostring    }b,err:=msgpack.Marshal(&Item{Foo:"bar"})iferr!=nil {panic(err)    }varitemItemerr=msgpack.Unmarshal(b,&item)iferr!=nil {panic(err)    }fmt.Println(item.Foo)// Output: bar}

See also

Contributors

Thanks to all the people who already contributed!

About

msgpack.org[Go] MessagePack encoding for Golang

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

    Languages


    [8]ページ先頭

    ©2009-2025 Movatter.jp