Implementation of google's flatbuffers in golang
Author: Dhriti Shikhar
The process of converting an object into stream of bytes.
This is the implementation of FlatBuffers in golang
Install flatbuffer from source. Reference —> https://rwinslow.com/posts/how-to-install-flatbuffers/
write a schema file. Here, myschema.fbs is the schema file.
Run it using the command:
./flatbuffers/flatc -g myschema.fbs
where flatc is the binary
write your program in main.go
run it using the command:
GOPATH=$(pwd) go run main.go