We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i can not resolve the error here, which says " cannot assign 1 values to 2 variables" & "too few arguments in call to item.Value"
please help me out with it, currently i'm using go version 1.15.8 on VScode
The text was updated successfully, but these errors were encountered:
I had the same problem. It seems BadgerDB Go package has updated since the video series was published, and the item.Value() syntax has changed
item.Value()
So I looked up the Badger docs, and fixed the code according to the latest version. So now the code looks this:
var encodedBlock []byte err = item.Value(func(val []byte) error{ encodedBlock = val return nil })
You can see the latest docs here
Sorry, something went wrong.
No branches or pull requests
i can not resolve the error here, which says " cannot assign 1 values to 2 variables" & "too few arguments in call to item.Value"
please help me out with it, currently i'm using go version 1.15.8 on VScode
The text was updated successfully, but these errors were encountered: