Skip to content

Instantly share code, notes, and snippets.

@ctalladen78
Last active September 11, 2020 22:27
Show Gist options
  • Save ctalladen78/65f1c7cf0b0cc3e45dced861cb507c96 to your computer and use it in GitHub Desktop.
Save ctalladen78/65f1c7cf0b0cc3e45dced861cb507c96 to your computer and use it in GitHub Desktop.
repository_pattern.md

Golang repository pattern

https://threedots.tech/post/repository-pattern-in-go/

main.go
modules/
|- auth/
   |- http/
      |- handler.go
   |- domain/
      |- auth.go
   |- data/
      |- login.go
      |- logout.go
|- dao/
   |- dynamodb/
      |- dynamodb.go
   |- models/
      |- models.go
   |- data/
      |- model_impl.go
   |- domain/
      |- dao.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment