June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package models import "sync/atomic" // DB Interface is our storage // layer type DB interface { GetScore() (int64, error) SetScore(int64) error } // NewDB returns our db struct that // satisfies DB interface func NewDB() DB { return &db{0} } type db struct { score int64 } // GetScore returns the score atomically ...