What is Nostr?
ben
npub1000…7nql
2024-06-15 04:27:42
in reply to nevent1q…3wy9

ben on Nostr: map[string]any is good if you don’t know the types ahead of time. otherwise you ...

map[string]any is good if you don’t know the types ahead of time. otherwise you should define a type struct with fields.

type User struct {
Name string ‘json:”name”’
}

var user User
json.Unmarshal(data, &user)
Author Public Key
npub10000000thpep7auj058803nqtymqlf3rw87lzhe6mkfeywnpxg5sjw7nql