Join Nostr
2026-05-31 15:00:02 UTC
in reply to

semisol on Nostr: It is actually great though. I have a deserialization library to unpack database ...

It is actually great though.

I have a deserialization library to unpack database keys. It has an Unpack[T](key []byte) function.

I can use an anonymous struct declaration for T and struct tags to have a quick and easy way to parse the key.

And declaring a dedicated type would be pointless as the same instance rarely occurs twice.