Skip to content

Commit 96a9f67

Browse files
committed
make gofmt -s happy
Signed-off-by: Miguel Molina <[email protected]>
1 parent 507e6de commit 96a9f67

File tree

2 files changed

+21
-21
lines changed

2 files changed

+21
-21
lines changed

generator/types.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,24 +1006,24 @@ func isTypeOrPtrTo(ptr types.Type, named *types.Named) bool {
10061006
}
10071007

10081008
var supportedSliceTypes = map[string]struct{}{
1009-
"int8": struct{}{},
1010-
"uint8": struct{}{},
1011-
"byte": struct{}{},
1012-
"int16": struct{}{},
1013-
"uint16": struct{}{},
1014-
"int32": struct{}{},
1015-
"uint32": struct{}{},
1016-
"int": struct{}{},
1017-
"uint": struct{}{},
1018-
"int64": struct{}{},
1019-
"uint64": struct{}{},
1020-
"float32": struct{}{},
1021-
"float64": struct{}{},
1022-
"bool": struct{}{},
1023-
"string": struct{}{},
1024-
"time.Time": struct{}{},
1025-
"time.Duration": struct{}{},
1026-
"net/url.URL": struct{}{},
1009+
"int8": {},
1010+
"uint8": {},
1011+
"byte": {},
1012+
"int16": {},
1013+
"uint16": {},
1014+
"int32": {},
1015+
"uint32": {},
1016+
"int": {},
1017+
"uint": {},
1018+
"int64": {},
1019+
"uint64": {},
1020+
"float32": {},
1021+
"float64": {},
1022+
"bool": {},
1023+
"string": {},
1024+
"time.Time": {},
1025+
"time.Duration": {},
1026+
"net/url.URL": {},
10271027
}
10281028

10291029
// castSlice returns the type to which the slice has to be casted and a bool

tests/query.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ type QueryRelationFixture struct {
7272
}
7373

7474
var queryFixtures = []*QueryFixture{
75-
&QueryFixture{
75+
{
7676
ID: kallax.NewULID(),
7777
Foo: "Foo0",
7878
StringProperty: "StringProperty0",
@@ -87,7 +87,7 @@ var queryFixtures = []*QueryFixture{
8787
AliasStringParam: "AliasString0",
8888
AliasIntParam: 0,
8989
},
90-
&QueryFixture{
90+
{
9191
ID: kallax.NewULID(),
9292
Foo: "Foo1",
9393
StringProperty: "StringProperty1",
@@ -102,7 +102,7 @@ var queryFixtures = []*QueryFixture{
102102
AliasStringParam: "AliasString1",
103103
AliasIntParam: 1,
104104
},
105-
&QueryFixture{
105+
{
106106
ID: kallax.NewULID(),
107107
Foo: "Foo2",
108108
StringProperty: "StringProperty2",

0 commit comments

Comments
 (0)