https://github.com/surrealdb/cork
A binary serialisation format for Go
https://github.com/surrealdb/cork
encoding go golang golang-library serialization serializer
Last synced: 11 months ago
JSON representation
A binary serialisation format for Go
- Host: GitHub
- URL: https://github.com/surrealdb/cork
- Owner: surrealdb
- License: apache-2.0
- Created: 2021-12-08T09:32:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-08T11:05:43.000Z (over 4 years ago)
- Last Synced: 2025-06-30T07:19:05.384Z (about 1 year ago)
- Topics: encoding, go, golang, golang-library, serialization, serializer
- Language: Go
- Homepage:
- Size: 108 KB
- Stars: 14
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cork
An efficient binary serialisation format for Go (Golang).
[](https://github.com/surrealdb/cork) [](https://godoc.org/github.com/surrealdb/cork) [](https://goreportcard.com/report/github.com/surrealdb/cork) [](https://github.com/surrealdb/cork)
#### Features
- Simple and efficient encoding
- Based on MsgPack serialization algorithm
- Stores go type information inside encoded data
- Faster serialization than gob binary encoding
- More efficient output data size than gob binary encoding
- Serializes native go types, and arbritary structs or interfaces
- Enables predetermined encoding for structs without run-time reflection
- Allows serialization to and from maps, structs, slices, and nil interfaces
#### Installation
```bash
go get github.com/surrealdb/cork
```