Part One!
QUICK TIP
type User struct {
func timeHandler(w http.ResponseWriter, r *http.
QUICK TIPQUICK TIP
HTTP STATUS CODES
$ curl -X POST -H ‘Content-Type: application/json’ -d ‘{"user": “mtsouk”, “password” : “admin"}’ http:// localhost:1234/insert $ curl http://localhost:1234/time $ curl http://localhost:1234/list $ curl http://localhost:1234/testingDefault
CRE ATING A DOCKER IMAGE
$ go mod init
GET RESTFUL YOURSELF AND… Subscribe now at http://bit.ly/LinuxFormat
Don’t miss next issue, subscribe on page 26!
The official Go web sites are https://golang. org and https:// go.dev. You can also read The Go Programming Language by Alan Donovan and Brian Kernighan as well as Mastering Go by yours truly!