DEV Community

Discussion on: Go interview task example - REST API

Collapse
 
shindakun profile image
Steve Layton

Happened to see this while looking through recent posts and figured what the heck. I went for very simple with the standard library, a Dockerfile, and no tests. Threw them up as a gist.

gist.github.com/shindakun/4ebd21c2...

Collapse
 
hekonsek profile image
Henryk Konsek

Thank you Steve! I love it.

+1 for how you use Go Docker image and Docker stages to build project! I see this build in stage pattern being more and more popular for cloud native applications. It makes total sense for me!

BTW Is there any reason to set up GOPROXY? I guess it defaults to https://proxy.golang.org anyway?

PS I will try to comment more later!

Collapse
 
shindakun profile image
Steve Layton

Thanks! The GOPROXY is really just left over from and older revision, it does not need to be in there any longer as far as I know.

Collapse
 
mariumaz profile image
Myriam Azzouz

Hey Steve :) , Why did you use docker in this task, could we just use go run ? Thanks !