Skip to content

Commit

Permalink
update for reflect
Browse files Browse the repository at this point in the history
  • Loading branch information
halfcrazy committed Jun 10, 2021
1 parent 2a3fc6f commit c51c525
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modelgen/table.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package {{ index . "PackageName" }}
{{ if index . "Enums" }}
type (
{{ range index . "Enums" }}
{{ .Alias }} {{ .Type }}
{{ .Alias }} = {{ .Type }}
{{- end }}
)
Expand Down
12 changes: 6 additions & 6 deletions modelgen/table_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ func TestNewTableTemplate(t *testing.T) {
package test
type (
AtomicTableEventType string
AtomicTableProtocol string
AtomicTableEventType = string
AtomicTableProtocol = string
)
const (
Expand Down Expand Up @@ -91,8 +91,8 @@ type AtomicTable struct {
package test
type (
AtomicTableEventType string
AtomicTableProtocol string
AtomicTableEventType = string
AtomicTableProtocol = string
)
const (
Expand Down Expand Up @@ -140,8 +140,8 @@ func {{ index . "TestName" }} () string {
package test
type (
AtomicTableEventType string
AtomicTableProtocol string
AtomicTableEventType = string
AtomicTableProtocol = string
)
const (
Expand Down

0 comments on commit c51c525

Please sign in to comment.