Jan-Lukas Else

Jan-Lukas Else

Tech, life and everything else

TIL: gob

Share this post
โš ๏ธ This entry is already over one year old. It may no longer be up to date. Opinions may have changed.

Today I learned about gob. gob is a package from the standard library of Go and allows to store structs efficiently as a byte array. Faster than encoding data in JSON for example. Useful for communication between Go programs or for temporarily storing data. In GoBlog, Iโ€™ve recently been using gob for a SQLite-based queue for verifying webmentions and sending ActivityPub requests. gob has the same interface as the JSON package.

Jan-Lukas Else
Interactions & Comments