Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputToEventPointer ¶
func InputToEventPointer(input string) *nostr.EventPointer
InputToEventPointer turns any note/nevent/hex input into a EventPointer (or nil)
func InputToProfile ¶
InputToProfile turns any npub/nprofile/hex/nip05 input into a ProfilePointer (or nil)
Types ¶
type Reference ¶ added in v0.15.2
type Reference struct { Text string Start int End int Profile *nostr.ProfilePointer Event *nostr.EventPointer Entity *nostr.EntityPointer }
func ParseReferences ¶ added in v0.15.2
func ParseReferences(evt *nostr.Event) []*Reference
ParseReferences parses both NIP-08 and NIP-27 references in a single unifying interface.
Click to show internal directories.
Click to hide internal directories.