I figured out the solution,
- Go to local
github.comfolder, drop folderbadgeranddgraph-io - In terminal, run command
go get github.com/dgraph-io/badger
Then everything is back to normal.
This command in the badger home page is not working go get github.com/dgraph-io/badger/v3. Above issue is happened after I go get badger again.