You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is : var integerID = new(atomic.Uint64)
it is not supported in 1.18. It can be updated for var integerID = new(uint64)
and in function newID I've changed it to:
func newID() any { if useFixedID { return defaultFixedID } if UseIntegerID { atomic.AddUint64(integerID,1) return integerID } return uuid.New().String() }
code does build on 1.18 , but not sure what it changes - so most probably you should update min Requirements in readme
Building example gave me error:
github.com/gagliardetto/solana-go/rpc/jsonrpc
../../../../../go/pkg/mod/github.com/gagliardetto/[email protected]/rpc/jsonrpc/jsonrpc.go:535:28: undefined: atomic.Uint64
note: module requires Go 1.19
As said - it looks like minimal version of Golang is not 1.18 , but 1.19++
The text was updated successfully, but these errors were encountered: