Skip to content

Commit

Permalink
remove json annotations from event.
Browse files Browse the repository at this point in the history
  • Loading branch information
fiatjaf committed May 29, 2024
1 parent 0836352 commit 2bf6c87
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions event.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bf6c87

Please sign in to comment.