mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 13:22:56 +01:00
omitempty metadata fields.
This commit is contained in:
parent
ea15550039
commit
fb29445ef9
@ -6,10 +6,10 @@ import (
|
||||
)
|
||||
|
||||
type ProfileMetadata struct {
|
||||
Name string `json:"name"`
|
||||
About string `json:"about"`
|
||||
Picture string `json:"picture"`
|
||||
NIP05 string `json:"nip05"`
|
||||
Name string `json:"name,omitempty"`
|
||||
About string `json:"about,omitempty"`
|
||||
Picture string `json:"picture,omitempty"`
|
||||
NIP05 string `json:"nip05,omitempty"`
|
||||
}
|
||||
|
||||
func ParseMetadata(event Event) (*ProfileMetadata, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user