Peter Stuifzand Notes on software, small tools, and the open web.

Tagged golang

08:11

Close your response bodies, or you will have a massive memory leak in long running…

Close your response bodies, or you will have a massive memory leak in long running programs #golang #tip

09:04

Perhaps it's possible with some kind of introspection to copy fields from a microformats…

Perhaps it's possible with some kind of introspection to copy fields from a microformats.Data object to a normal struct, just like how "encoding/json" works. You could create your own structs and copy those fields from the MF2 into your own data model.