Less Ans

Go-Best-Practices

Go Best Practices Accept Interfaces, return types http://idiomaticgo.com/post/best-practice/accept-interfaces-return-structs/ Returning interfaces instead of returning a type makes consumers of our API more flexible. Take the example below, we can do any type of scan instructions as long as the type we work with contains a Scan(). The flexibility is also obvious when testing. type scanner interface { Scan() error } func scanAccount(s scanner) error { var a Account return s.Scan(&a.ID) } // vs func scanAccount(r *sql....

CI-&&-CD

CI && CD Continuous Integration - ensures changes integrate with each other - CI + automated testing (dockerized) - CI server returns a response with results of build and all requirements necessary to integrate the branches Continuous Delivery - develop to release at any time Continuous Deployment - deploy new features immediately Github is your house for your code Local → Github → CI server Github uses webhooks to the CI server, trigged by a PR CI gets the copy of the repo and makes a build, pass the test CD is when these webhooks are configured by a PR to merge to master, prod...

My First Post

Oh hey. ...