Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 #8

Merged
merged 5 commits into from
Apr 30, 2018
Merged

V2 #8

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
164 changes: 117 additions & 47 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 27 additions & 7 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
Expand All @@ -17,26 +16,47 @@
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true


[[constraint]]
name = "github.com/bxcodec/faker"
version = "~1.1.0"
version = "1.4.2"

[[constraint]]
name = "github.com/go-sql-driver/mysql"
version = "1.3.0"

[[constraint]]
name = "github.com/labstack/echo"
version = "3.1.0"
version = "3.3.5"

[[constraint]]
name = "github.com/sirupsen/logrus"
version = "1.0.5"

[[constraint]]
branch = "master"
name = "github.com/spf13/viper"
version = "1.0.2"

[[constraint]]
name = "github.com/stretchr/testify"
version = "1.2.1"

[[constraint]]
name = "gopkg.in/DATA-DOG/go-sqlmock.v1"
version = "1.2.0"
version = "1.3.0"

[[constraint]]
name = "gopkg.in/go-playground/validator.v9"
version = "9.15.0"

[prune]
go-tests = true
unused-packages = true
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# go-clean-arch

## Looking for the old code ?
If you are looking for the old code, you can checkout to the [v1 branch](https://github.com/bxcodec/go-clean-arch/tree/v1)

_Last Updated: April 30th 2018_

## Description
This is an example of implementation of Clean Architecture in Go (Golang) projects.

Rule of Clean Architecture by Uncle Bob
Expand Down Expand Up @@ -32,7 +38,7 @@ git clone https://github.com/bxcodec/go-clean-arch.git
cd go-clean-arch

# Install Dependencies
glide install -v
dep ensure

# Make File
make
Expand All @@ -53,7 +59,7 @@ go get github.com/bxcodec/go-clean-arch
cd $GOPATH/src/github.com/bxcodec/go-clean-arch

# Install Dependencies
glide install -v
dep ensure

# Make File
make
Expand Down
13 changes: 0 additions & 13 deletions article/article.go

This file was deleted.

4 changes: 2 additions & 2 deletions article/delivery/http/article_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (

"github.com/sirupsen/logrus"

models "github.com/bxcodec/go-clean-arch/article"
models "github.com/bxcodec/go-clean-arch/models"

articleUcase "github.com/bxcodec/go-clean-arch/article/usecase"
articleUcase "github.com/bxcodec/go-clean-arch/article"
"github.com/labstack/echo"

validator "gopkg.in/go-playground/validator.v9"
Expand Down
Loading