update to go1.18 and use generic sync maps instead of normal maps.

fixes https://github.com/fiatjaf/go-nostr/issues/12
This commit is contained in:
fiatjaf
2022-08-22 08:45:27 -03:00
parent 2f84ddf5f5
commit cea3004867
4 changed files with 63 additions and 98 deletions

12
go.mod
View File

@@ -1,8 +1,9 @@
module github.com/fiatjaf/go-nostr
go 1.15
go 1.18
require (
github.com/SaveTheRbtz/generic-sync-map-go v0.0.0-20220414055132-a37292614db8
github.com/btcsuite/btcd v0.22.1
github.com/btcsuite/btcd/btcec/v2 v2.2.0
github.com/gorilla/websocket v1.4.2
@@ -10,3 +11,12 @@ require (
github.com/tyler-smith/go-bip39 v1.1.0
github.com/valyala/fastjson v1.6.3
)
require (
github.com/FactomProject/basen v0.0.0-20150613233007-fe3947df716e // indirect
github.com/FactomProject/btcutilecc v0.0.0-20130527213604-d3a63a5752ec // indirect
github.com/btcsuite/btcd/chaincfg/chainhash v1.0.1 // indirect
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1 // indirect
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 // indirect
)