mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-08-26 21:51:10 +02:00
replace all ocurrences of encoding/json with json-iterator so we get rid of HTML escaping and hopefully get faster too.
This commit is contained in:
@@ -3,8 +3,12 @@ package sdk
|
||||
import (
|
||||
"slices"
|
||||
"time"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
var json = jsoniter.ConfigFastest
|
||||
|
||||
func appendUnique[I comparable](arr []I, item ...I) []I {
|
||||
for _, item := range item {
|
||||
if slices.Contains(arr, item) {
|
||||
|
Reference in New Issue
Block a user