Skip to content

friendsofgo/go-architecture-examples

Repository files navigation

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

About

Examples of our talks about how to structure the Go code

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages