DEV Community

Discussion on: Learning Go by examples: part 2 - Create an HTTP REST API Server in Go

Collapse
 
cadayton profile image
Craig Dayton

localized copy of go-rest-api now working.

Issue 1: 'task gen' not generating server code in /pkg/swagger
change to /pkg/swagger and executing 'go generate gen.go' worked.

Issue 2: Had to manually set import statement in server.go to match the git version

Issue 3: go.mod had to be manually created to match the git version.

VScode is issuing a warning that 'io/ioutil' has been deprecated since Go 1.16

Collapse
 
aurelievache profile image
Aurélie Vache

💪
thanks for your remark about io/ioutil package:
pkg.go.dev/io/ioutil