Golang patterns implementation.