mleku on Nostr: in go there is arrays, with fixed size: [32]byte - often found for hash functions, ...
in go there is arrays, with fixed size: [32]byte - often found for hash functions, and much more common are dynamic arrays or "slices" which are []byte
byte is a synonym for uint8 or unsigned 8 bit integer and they are used constantly for all types of things except for the last leg often if it's text it comes out as string, the two can be interchanged in many cases but strings are immutable, the only immutable objects in Go aside from constants - they are the only structured type that can be a constant in go
Published at
2024-05-27 09:48:25Event JSON
{
"id": "aad820788ef3478bfc123b2b82fb6e8d9294d669bc7ff1186c39d85a9a81251e",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1716803305,
"kind": 1,
"tags": [
[
"e",
"a088c9030d4f6d9a83e6563c0a2b9f2a9503b634db4e84352c5f1ec8254f113e",
"wss://nostr.land/",
"root"
],
[
"e",
"a088c9030d4f6d9a83e6563c0a2b9f2a9503b634db4e84352c5f1ec8254f113e",
"wss://nostr.land/",
"reply"
],
[
"p",
"52b4a076bcbbbdc3a1aefa3735816cf74993b1b8db202b01c883c58be7fad8bd",
"",
"mention"
]
],
"content": "in go there is arrays, with fixed size: [32]byte - often found for hash functions, and much more common are dynamic arrays or \"slices\" which are []byte\n\nbyte is a synonym for uint8 or unsigned 8 bit integer and they are used constantly for all types of things except for the last leg often if it's text it comes out as string, the two can be interchanged in many cases but strings are immutable, the only immutable objects in Go aside from constants - they are the only structured type that can be a constant in go",
"sig": "3f3196b3ce6660781edd7cdf316a388faacacaab1bd8042feef5838a4b5ab1a73f2830ac818c547e199986942a1d29222fd35148db02d4d23e63f53c2eba7826"
}