mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-05-23 00:49:57 +02:00
remove json annotations from event.
This commit is contained in:
parent
0836352724
commit
2bf6c87b45
14
event.go
14
event.go
@ -11,13 +11,13 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type Event struct {
|
type Event struct {
|
||||||
ID string `json:"id"`
|
ID string
|
||||||
PubKey string `json:"pubkey"`
|
PubKey string
|
||||||
CreatedAt Timestamp `json:"created_at"`
|
CreatedAt Timestamp
|
||||||
Kind int `json:"kind"`
|
Kind int
|
||||||
Tags Tags `json:"tags"`
|
Tags Tags
|
||||||
Content string `json:"content"`
|
Content string
|
||||||
Sig string `json:"sig"`
|
Sig string
|
||||||
|
|
||||||
// anything here will be mashed together with the main event object when serializing
|
// anything here will be mashed together with the main event object when serializing
|
||||||
extra map[string]any
|
extra map[string]any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user