mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-05-05 08:10:14 +02:00
rename to github.com/nbd-wtf/go-nostr
This commit is contained in:
parent
329b8d44d2
commit
2427dbd65a
@ -3,9 +3,9 @@
|
|||||||
go-nostr
|
go-nostr
|
||||||
========
|
========
|
||||||
|
|
||||||
A set of useful things for [Nostr Protocol](https://github.com/fiatjaf/nostr) implementations.
|
A set of useful things for [Nostr Protocol](https://github.com/nostr-protocol/nostr) implementations.
|
||||||
|
|
||||||
<a href="https://godoc.org/github.com/fiatjaf/go-nostr"><img src="https://img.shields.io/badge/api-reference-blue.svg?style=flat-square" alt="GoDoc"></a>
|
<a href="https://godoc.org/github.com/nbd-wtf/go-nostr"><img src="https://img.shields.io/badge/api-reference-blue.svg?style=flat-square" alt="GoDoc"></a>
|
||||||
|
|
||||||
|
|
||||||
### Subscribing to a set of relays
|
### Subscribing to a set of relays
|
||||||
|
@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/fiatjaf/go-nostr/nostr"
|
"github.com/nbd-wtf/go-nostr"
|
||||||
)
|
)
|
||||||
|
|
||||||
// some nostr relay in the wild
|
// some nostr relay in the wild
|
||||||
@ -70,7 +70,6 @@ func main() {
|
|||||||
time.Sleep(20 * time.Second)
|
time.Sleep(20 * time.Second)
|
||||||
fmt.Println("unsubscribing from nostr subscription")
|
fmt.Println("unsubscribing from nostr subscription")
|
||||||
sub.Unsub()
|
sub.Unsub()
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// handle events from out publish events
|
// handle events from out publish events
|
||||||
|
Loading…
x
Reference in New Issue
Block a user