From 2bf6c87b45b7ea765b16ca4ef6d218fcd374fbb3 Mon Sep 17 00:00:00 2001 From: fiatjaf Date: Wed, 29 May 2024 08:40:54 -0300 Subject: [PATCH] remove json annotations from event. --- event.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/event.go b/event.go index 76eeaf4..87fb98d 100644 --- a/event.go +++ b/event.go @@ -11,13 +11,13 @@ import ( ) type Event struct { - ID string `json:"id"` - PubKey string `json:"pubkey"` - CreatedAt Timestamp `json:"created_at"` - Kind int `json:"kind"` - Tags Tags `json:"tags"` - Content string `json:"content"` - Sig string `json:"sig"` + ID string + PubKey string + CreatedAt Timestamp + Kind int + Tags Tags + Content string + Sig string // anything here will be mashed together with the main event object when serializing extra map[string]any