jsontomsgp

package module
v0.0.0-...-3344c00 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2023 License: MIT Imports: 3 Imported by: 0

README

Copy json to message pack

The package provides tools for converting json to message pack with minimal overhead.

jsontomsgp.CopyBytes - takes json bytes and writes message pack bytes to the writer.

Benchmarks

$go test ./... -bench=. -run=none
goos: darwin
goarch: arm64
pkg: github.com/makasim/jsontomsgp
BenchmarkCopyJSONToMsgp-10    	 2112625	       562.5 ns/op	       0 B/op	       0 allocs/op
PASS
ok  	github.com/makasim/jsontomsgp	1.939s

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyBytes

func CopyBytes(src []byte, w *msgp.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL