The @latest tag refers to badger v1.6.2. The actual latest version is v3.2103.2. You’ll want to take a look at the install instructions in the Github repo.
the Install instructions in the github repo refer to go get github.com/dgraph-io/badger/v3 this does not work with go1.18 you need to go install but what is the path? v3 no longer exists.