June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package bdd import ( "encoding/json" "fmt" "net/http" ) // HandlerRequest will be json decoded // into by Handler type HandlerRequest struct { Name string `json:"name"` } // Handler takes a request and renders a response func Handler(w http.ResponseWriter, r *http.Request) { w.Header().Set("Content-Type", "text/plain; charset=utf-8") if r.Method != http.MethodPost { w.WriteHeader(http.StatusMethodNotAllowed) ...Read now
Unlock full access