mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-07 22:59:54 +02:00
use stdlib "slices".
This commit is contained in:
@ -3,8 +3,9 @@ package nostr
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
"slices"
|
||||
|
||||
"github.com/mailru/easyjson"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
type Filters []Filter
|
||||
|
@ -4,7 +4,7 @@ import (
|
||||
"encoding/json"
|
||||
"testing"
|
||||
|
||||
"golang.org/x/exp/slices"
|
||||
"slices"
|
||||
)
|
||||
|
||||
func TestFilterUnmarshal(t *testing.T) {
|
||||
|
@ -1,6 +1,6 @@
|
||||
package nip11
|
||||
|
||||
import "golang.org/x/exp/slices"
|
||||
import "slices"
|
||||
|
||||
type RelayInformationDocument struct {
|
||||
Name string `json:"name"`
|
||||
|
@ -1,8 +1,9 @@
|
||||
package nip29
|
||||
|
||||
import (
|
||||
"slices"
|
||||
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
type Role struct {
|
||||
|
@ -5,10 +5,11 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"slices"
|
||||
|
||||
"github.com/mailru/easyjson"
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/nbd-wtf/go-nostr/nip04"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
var _ Signer = (*DynamicSigner)(nil)
|
||||
|
@ -5,10 +5,11 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"slices"
|
||||
|
||||
"github.com/mailru/easyjson"
|
||||
"github.com/nbd-wtf/go-nostr"
|
||||
"github.com/nbd-wtf/go-nostr/nip04"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
var _ Signer = (*StaticKeySigner)(nil)
|
||||
|
3
pool.go
3
pool.go
@ -8,8 +8,9 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"slices"
|
||||
|
||||
"github.com/puzpuzpuz/xsync/v3"
|
||||
"golang.org/x/exp/slices"
|
||||
)
|
||||
|
||||
const (
|
||||
|
Reference in New Issue
Block a user