jlelse's Blog

Thoughts, stories and ideas

2021-05-24


Published on in 💬 Micro

Pro tip: Double check your commits for copy and paste mistakes. I learned my lessons today.

View

TIL: gob

Published on in 👨‍💻 Dev

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.

View

Jan-Lukas Else