Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 918 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 918 Bytes

Go Architectures Examples

Code examples from our talks about how to structure Go code.

How to run

All these examples are for study purpose, but all the code can be compiled, so you can test it:

no-architecture

$ go run no-architecture/*.go

package-architecture

$ go run package-architecture/main.go

hexagonal-architecture

$  go run hexagonal-architecture/cmd/counters-api/main.go 

contexts-architecture

counters-api

$  go run contexts-architecture/counters/cmd/counters-api/main.go 

users-api

$  go run contexts-architecture/users/cmd/users-api/main.go 

Links to the videos and slides

  • 2019-08-23 GopherCon UK video | slides pending...
  • 2019-10-06 Software Crafter Bcn 2019 video | slides