Skip to content
New issue

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

cannot call non-function resp.Size (type int64) #91

Open
abelikoff opened this issue May 7, 2021 · 2 comments
Open

cannot call non-function resp.Size (type int64) #91

abelikoff opened this issue May 7, 2021 · 2 comments

Comments

@abelikoff
Copy link

Apologies if this is some rookie mistake - I'm fairly new to Go :-)

When trying the basic grab example (straight from the homepage), I'm getting an error: cannot call non-function resp.Size (type int64)

This is with Go 1.16.3 (reproducible both on MacOS and Raspbian; go env output attached). go mod reports github.com/cavaliercoder/grab@v2.0.0+incompatible.

Any help would be greatly appreciated.

goenv.txt
main.go.txt

@neepoo
Copy link

neepoo commented Jun 25, 2021

you should change resp.Size() to resp.Size

@abelikoff
Copy link
Author

abelikoff commented Jun 29, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants