June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package controllers // Controller passes state to our handlers type Controller struct { storage Storage } // New is a Controller 'constructor' func New(storage Storage) *Controller { return &Controller{ storage: storage, } } // Payload is our common response type Payload struct { Value string `json:"value"` }
Read now
Unlock full access