All Projects → friendsofgo → go-architecture-examples

friendsofgo / go-architecture-examples

Licence: other
Examples of our talks about how to structure the Go code

Programming Languages

go
31211 projects - #10 most used programming language

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].