johanbrandhorst / grpc-gateway-boilerplate

All the boilerplate you need to get started with writing grpc-gateway powered REST services in Go
MIT License
474 stars 81 forks source link

Cannot find module for path embed #34

Closed p7ac closed 2 years ago

p7ac commented 2 years ago

Hi there, thanks for providing this boilerplate repo.

I've checked this repo out and followed the instructions, running make install then make generate.

When running go main.go run the command errors out with this message:

build github.com/johanbrandhorst/grpc-gateway-boilerplate: cannot find module for path embed

Do you have any idea what could be happening here?

marcosnils commented 2 years ago

You need to use go1.16+ to build this project. The embed directive was added starting that release.

Cheers!

johanbrandhorst commented 2 years ago

Thanks for your interest in the project! Marcos is right, you'll need at least Go 1.16 to build the project. I have updated the README to make that clear.