golang

again this is for my self reference or for easy copy-paste for new projects. Assume this is the production grade program we need to dockerize and run. package main import "fmt" func main() { fmt.Println("saying hello to the world") } Basic #-NAME: Dockerfile multistage build FROM golang:1.14-alpine as builder WORKDIR /go/src/github.com/shabinesh/prog COPY main.go . COPY vendor ./vendor RUN go build -o main . FROM alpine:latest RUN apk --no-cache add ca-certificates WORKDIR / COPY --from=0 /go/src/github.
Summary: What is SOLID? Golang’s embodiment of SOLID as a language design This is again a post for myself, as a precursor to the common design pattern in game dev which is possibly a follow up post. The credits for any information put up here goes to Dave Cheney from where I have derived this material. What is SOLID? The SOLID principles are the top five, rather important patterns usually found the Object oriented programming languages.