loong / go-concurrency-exercises

Hands on exercises with real-life examples to study and practice Go concurrency patterns. Test-cases are provided to verify your answers.
Other
1.17k stars 401 forks source link

fetcher is undeclared #20

Closed sudosean closed 2 years ago

sudosean commented 2 years ago

https://github.com/loong/go-concurrency-exercises/blob/master/0-limit-crawler/main.go#L26 fetcher is not declared

not sure how active this repo is anyore

viktomas commented 2 years ago

@sudosean If you didn't clone this project to your $GOPATH you might want to run go mod init go-concurrency-exercises in the repository root (the module name is arbitrary since you are not going to publish it)

loong commented 2 years ago

Thank you so much @viktomas for the workaround!

Merged this pull request https://github.com/loong/go-concurrency-exercises/pull/22, and we are finally making use of go modules 🎉