Why Nostr? What is Njump?
2024-06-15 06:27:42
in reply to

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