Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
update to typical-go 0.9.8
Browse files Browse the repository at this point in the history
  • Loading branch information
imantung committed Dec 7, 2019
1 parent f142c23 commit 94476ad
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 12 deletions.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/typical-go/typical-rest-server

go 1.12
go 1.13

require (
github.com/DATA-DOG/go-sqlmock v1.3.3
Expand Down Expand Up @@ -31,7 +31,7 @@ require (
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/stretchr/testify v1.4.0
github.com/typical-go/typical-go v0.9.7
github.com/typical-go/typical-go v0.9.8
github.com/urfave/cli v1.22.2
github.com/urfave/cli/v2 v2.0.0
github.com/valyala/fasttemplate v1.1.0 // indirect
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ github.com/typical-go/typical-go v0.9.6 h1:52FJpocmRnrIJcfUtMQu/kSwZW6niw2O7QzVV
github.com/typical-go/typical-go v0.9.6/go.mod h1:LBhzPCMNZYC0HZ4nCj3V42RvloFMefFNvgkHnAShN+c=
github.com/typical-go/typical-go v0.9.7 h1:v4zccD4LMfSCaLwkd51PRdmA4AZTEEtH4V0Pl2jZIjM=
github.com/typical-go/typical-go v0.9.7/go.mod h1:LBhzPCMNZYC0HZ4nCj3V42RvloFMefFNvgkHnAShN+c=
github.com/typical-go/typical-go v0.9.8 h1:r6vjHQAq9S5dNAfYx0+ek1CI9rnFEcUQY63q4P6lqCg=
github.com/typical-go/typical-go v0.9.8/go.mod h1:7qbV2CpwulvgDWI6TpYe+sP2bJDFI1W5lD4dYj0Hp6w=
github.com/urfave/cli v1.21.0/go.mod h1:lxDj6qX9Q6lWQxIrbrT0nwecwUtRnhVZAJjJZrVUZZQ=
github.com/urfave/cli v1.22.2 h1:gsqYFH8bb9ekPA12kRo0hfjngWQjkJPlN9R0N78BoUo=
github.com/urfave/cli v1.22.2/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
Expand Down Expand Up @@ -147,6 +149,8 @@ golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLL
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45 h1:SVwTIAaPC2U/AvvLNZ2a7OVsmBpC8L5BlwK1whH3hm0=
golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6 h1:pE8b58s1HRDMi8RDc79m0HISf9D4TzseP40cEA6IGfs=
golang.org/x/oauth2 v0.0.0-20191202225959-858c2ad4c8b6/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down
11 changes: 7 additions & 4 deletions internal/dependency/constructor.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
package dependency

import "github.com/typical-go/typical-rest-server/app/repository"
import "github.com/typical-go/typical-rest-server/app/service"
import "github.com/typical-go/typical-rest-server/typical"
// Autogenerated by Typical-Go. DO NOT EDIT.

import (
"github.com/typical-go/typical-rest-server/app/repository"
"github.com/typical-go/typical-rest-server/app/service"
"github.com/typical-go/typical-rest-server/typical"
)

func init() {
// Autogenerated by Typical-Go. DO NOT EDIT.
typical.Context.Constructors.Append(repository.NewBookRepo)
typical.Context.Constructors.Append(service.NewBookService)
}
3 changes: 2 additions & 1 deletion internal/dependency/mock_target.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package dependency

// Autogenerated by Typical-Go. DO NOT EDIT.

import "github.com/typical-go/typical-rest-server/typical"

func init() {
// Autogenerated by Typical-Go. DO NOT EDIT.
typical.Context.MockTargets.Append("app/repository/book_repo.go")
typical.Context.MockTargets.Append("app/service/book_service.go")
}
3 changes: 2 additions & 1 deletion internal/dependency/test_target.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package dependency

// Autogenerated by Typical-Go. DO NOT EDIT.

import "github.com/typical-go/typical-rest-server/typical"

func init() {
// Autogenerated by Typical-Go. DO NOT EDIT.
typical.Context.TestTargets.Append("./app")
typical.Context.TestTargets.Append("./app/config")
typical.Context.TestTargets.Append("./app/controller")
Expand Down
6 changes: 2 additions & 4 deletions typical/context.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package typical

import (
"github.com/typical-go/typical-go/pkg/typcfg"
"github.com/typical-go/typical-go/pkg/typctx"
"github.com/typical-go/typical-go/pkg/typrls"
"github.com/typical-go/typical-rest-server/app"
Expand All @@ -25,12 +24,11 @@ var Context = &typctx.Context{
typpostgres.Module(),
typredis.Module(),
},
Releaser: typrls.Releaser{
ReadmeGenerator: typreadme.Generator{},
Releaser: &typrls.Releaser{
Targets: []typrls.Target{"linux/amd64", "darwin/amd64"},
Publishers: []typrls.Publisher{
&typrls.Github{Owner: "typical-go", RepoName: "typical-rest-server"},
},
},
ConfigLoader: typcfg.DefaultLoader(),
ReadmeGenerator: typreadme.Generator{},
}

0 comments on commit 94476ad

Please sign in to comment.