use stdlib "slices".

This commit is contained in:
fiatjaf
2024-02-08 16:33:39 -03:00
parent 555197973b
commit 9c4ea87d0b
8 changed files with 13 additions and 8 deletions

View File

@ -3,8 +3,9 @@ package nostr
import (
"encoding/json"
"slices"
"github.com/mailru/easyjson"
"golang.org/x/exp/slices"
)
type Filters []Filter

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"testing"
"golang.org/x/exp/slices"
"slices"
)
func TestFilterUnmarshal(t *testing.T) {

View File

@ -1,6 +1,6 @@
package nip11
import "golang.org/x/exp/slices"
import "slices"
type RelayInformationDocument struct {
Name string `json:"name"`

View File

@ -1,8 +1,9 @@
package nip29
import (
"slices"
"github.com/nbd-wtf/go-nostr"
"golang.org/x/exp/slices"
)
type Role struct {

View File

@ -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)

View File

@ -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)

View File

@ -8,8 +8,9 @@ import (
"sync"
"time"
"slices"
"github.com/puzpuzpuz/xsync/v3"
"golang.org/x/exp/slices"
)
const (

View File

@ -5,7 +5,7 @@ import (
"errors"
"strings"
"golang.org/x/exp/slices"
"slices"
)
type Tag []string