Skip to content

Commit 99a0742

Browse files
committed
Don't require pointer for non-mutating methods
1 parent 9725021 commit 99a0742

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

type.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (b *StructLiteral) KeyField(name Generator, value Generator) {
6868
b.Field(StructLiteralKeyElement{name, value})
6969
}
7070

71-
func (b *StructLiteral) Generate() *jen.Statement {
71+
func (b StructLiteral) Generate() *jen.Statement {
7272
var fields []Generator
7373
if !b.MultiLine {
7474
fields = b.Elements
@@ -83,6 +83,6 @@ func (b *StructLiteral) Generate() *jen.Statement {
8383
return b.Type.Generate().Values(ToJenCodes(fields)...)
8484
}
8585

86-
func (b *StructLiteral) Value() Value {
86+
func (b StructLiteral) Value() Value {
8787
return Value{b}
8888
}

0 commit comments

Comments
 (0)