Skip to content

Commit

Permalink
Ref: rename go-generators/ddd-domain-gen -> ddd-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
David Arnold committed Nov 18, 2020
1 parent f9fc8b0 commit 637c4c0
Show file tree
Hide file tree
Showing 19 changed files with 9 additions and 9 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions ddd-domain-gen/cmd/root.go → cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/viper"

"github.com/xoe-labs/go-generators/ddd-domain-gen/pkg/generate"
"github.com/xoe-labs/ddd-gen/pkg/generate"
)

var (
Expand Down Expand Up @@ -63,7 +63,7 @@ var rootCmd = &cobra.Command{
│ └── party_gen.go // generated by this tool
└── ...`,
Example: ` Command:
//go:generate go run github.com/xoe-labs/go-generators/ddd-domain-gen --type YOURTYPE
//go:generate go run github.com/xoe-labs/ddd-gen --type YOURTYPE
Code:
type Account struct {
Expand Down
2 changes: 1 addition & 1 deletion ddd-domain-gen/go.mod → go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/xoe-labs/go-generators/ddd-domain-gen
module github.com/xoe-labs/ddd-gen

go 1.14

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package account

import (
"github.com/xoe-labs/go-generators/ddd-domain-gen/test-domain/holder"
"github.com/xoe-labs/ddd-gen/internal/test-domain/holder"
)

//go:generate go run ../../main.go -t Account
//go:generate go run ../../../main.go -t Account
type Account struct {
uuid string `ddd:"required,field uuid is empty;equal;stringer"`
holder holder.Holder `ddd:"required,field holder is empty;getter"`
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var (
)


//go:generate go run ../../main.go -t Holder -v validate
//go:generate go run ../../../main.go -t Holder -v validate
type Holder struct {
uuid string `ddd:"required,field uuid is empty;equal,reflect"`
name string `ddd:"required,field name is empty;stringer"`
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion ddd-domain-gen/main.go → main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ THE SOFTWARE.
*/
package main

import "github.com/xoe-labs/go-generators/ddd-domain-gen/cmd"
import "github.com/xoe-labs/ddd-gen/cmd"

func main() {
cmd.Execute()
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

. "github.com/dave/jennifer/jen"

"github.com/xoe-labs/go-generators/ddd-domain-gen/pkg/directive"
"github.com/xoe-labs/ddd-gen/pkg/directive"
)

// StructTag Key
Expand Down
File renamed without changes.

0 comments on commit 637c4c0

Please sign in to comment.