added example/example.go with subscription and publication code example

This commit is contained in:
Dylan Cant
2023-01-13 18:50:35 -05:00
committed by fiatjaf
parent c64078e5cc
commit 92ce379649
2 changed files with 138 additions and 0 deletions

View File

@@ -15,3 +15,9 @@ sk, _ := nostr.GenerateKey()
fmt.Println("sk:", sk)
fmt.Println("pk:", nostr.GetPublicKey(sk))
```
### Subscriptions
```
go run example/example.go
```