Skip to content

Commit

Permalink
V2 (#8)
Browse files Browse the repository at this point in the history
* refactor: moving to a new structure folder

* fix test

* move to godep

* Update README.md

* updatereadme
  • Loading branch information
bxcodec authored Apr 30, 2018
1 parent 0d0db70 commit b50f0fb
Show file tree
Hide file tree
Showing 27 changed files with 307 additions and 374 deletions.
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

0 comments on commit b50f0fb

Please sign in to comment.