terraformDummyRepo2/vendor/github.com/vmihailenco/msgpack
dependabot[bot] 910ccdb092
Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.26.1 to 2.27.0
Bumps [github.com/hashicorp/terraform-plugin-sdk/v2](https://github.com/hashicorp/terraform-plugin-sdk) from 2.26.1 to 2.27.0.
- [Release notes](https://github.com/hashicorp/terraform-plugin-sdk/releases)
- [Changelog](https://github.com/hashicorp/terraform-plugin-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/hashicorp/terraform-plugin-sdk/compare/v2.26.1...v2.27.0)

---
updated-dependencies:
- dependency-name: github.com/hashicorp/terraform-plugin-sdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-03 20:21:30 +00:00
..
codes updated GHA 2022-08-06 16:21:18 +02:00
v5 Bump github.com/hashicorp/terraform-plugin-sdk/v2 from 2.26.1 to 2.27.0 2023-07-03 20:21:30 +00:00
.travis.yml updated GHA 2022-08-06 16:21:18 +02:00
appengine.go updated GHA 2022-08-06 16:21:18 +02:00
CHANGELOG.md updated GHA 2022-08-06 16:21:18 +02:00
decode.go updated GHA 2022-08-06 16:21:18 +02:00
decode_map.go updated GHA 2022-08-06 16:21:18 +02:00
decode_number.go updated GHA 2022-08-06 16:21:18 +02:00
decode_query.go updated GHA 2022-08-06 16:21:18 +02:00
decode_slice.go updated GHA 2022-08-06 16:21:18 +02:00
decode_string.go updated GHA 2022-08-06 16:21:18 +02:00
decode_value.go updated GHA 2022-08-06 16:21:18 +02:00
encode.go updated GHA 2022-08-06 16:21:18 +02:00
encode_map.go updated GHA 2022-08-06 16:21:18 +02:00
encode_number.go updated GHA 2022-08-06 16:21:18 +02:00
encode_slice.go updated GHA 2022-08-06 16:21:18 +02:00
encode_value.go updated GHA 2022-08-06 16:21:18 +02:00
ext.go updated GHA 2022-08-06 16:21:18 +02:00
LICENSE updated GHA 2022-08-06 16:21:18 +02:00
Makefile updated GHA 2022-08-06 16:21:18 +02:00
msgpack.go updated GHA 2022-08-06 16:21:18 +02:00
README.md updated GHA 2022-08-06 16:21:18 +02:00
tag.go updated GHA 2022-08-06 16:21:18 +02:00
time.go updated GHA 2022-08-06 16:21:18 +02:00
types.go updated GHA 2022-08-06 16:21:18 +02:00

MessagePack encoding for Golang

Build Status GoDoc

Supports:

API docs: https://godoc.org/github.com/vmihailenco/msgpack. Examples: https://godoc.org/github.com/vmihailenco/msgpack#pkg-examples.

Installation

Install:

go get -u github.com/vmihailenco/msgpack

Quickstart

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
}

Benchmark

BenchmarkStructVmihailencoMsgpack-4   	  200000	     12814 ns/op	    2128 B/op	      26 allocs/op
BenchmarkStructUgorjiGoMsgpack-4      	  100000	     17678 ns/op	    3616 B/op	      70 allocs/op
BenchmarkStructUgorjiGoCodec-4        	  100000	     19053 ns/op	    7346 B/op	      23 allocs/op
BenchmarkStructJSON-4                 	   20000	     69438 ns/op	    7864 B/op	      26 allocs/op
BenchmarkStructGOB-4                  	   10000	    104331 ns/op	   14664 B/op	     278 allocs/op

Howto

Please go through examples to get an idea how to use this package.

See also