|
You are here |
github.com | ||
| | | | |
alexandrugris.github.io
|
|
| | | | | These are my first steps in Go, this time learning how to build web services. The post touches handling requests, json serialization, middleware, logging, da... | |
| | | | |
gist.github.com
|
|
| | | | | GitHub Gist: instantly share code, notes, and snippets. | |
| | | | |
bartlomiejmika.com
|
|
| | | | | The purpose of this post is to provide instructions on how to setup a simple RESTful API server, in Golang, using only the net/http package and not any other third-party web framework. You will learn how to create REST endpoints within your project that can handle POST, GET, PUT and DELETE HTTP requests. This is the first post in a multi-post series. | |
| | | | |
miparnisariblog.wordpress.com
|
|
| | | From simpler to more complex: 1. errors.New() or fmt.Errorf() without a sentinel error Only use for quick prototyping 2. Sentinel errors When you have an interface and want implementations to be able to throw errors and then catch them to run some logic But! you won't be able to customize the error thrown var (... | ||