gocleanarchitecture

module
v0.0.0-...-cee7a81 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2017 License: MIT

README

Clean Architecture in Go

Go Report Card GoDoc Coverage Status

A good example of clean architecture for a web application in Go.

The domain folder is for enterprise business logic without any dependencies. These can be structs, interfaces, and functions.

There is no usecase folder, but if there was one, it would hold the application business logic without any dependencies with the exception of the domain. These can be structs, interfaces, and functions.

The adapter folder should contain abstractions for the packages in the lib and vendor folders.

The lib folder contains internal packages, similar to the vendor folder which contains 3rd party packages.

Directories

Path Synopsis
cmd
lib
passhash
Package passhash provides password hashing functionality using bcrypt.
Package passhash provides password hashing functionality using bcrypt.
router
Package router combines routing and middleware handling in a single package.
Package router combines routing and middleware handling in a single package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL