We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9725021 commit 99a0742Copy full SHA for 99a0742
type.go
@@ -68,7 +68,7 @@ func (b *StructLiteral) KeyField(name Generator, value Generator) {
68
b.Field(StructLiteralKeyElement{name, value})
69
}
70
71
-func (b *StructLiteral) Generate() *jen.Statement {
+func (b StructLiteral) Generate() *jen.Statement {
72
var fields []Generator
73
if !b.MultiLine {
74
fields = b.Elements
@@ -83,6 +83,6 @@ func (b *StructLiteral) Generate() *jen.Statement {
83
return b.Type.Generate().Values(ToJenCodes(fields)...)
84
85
86
-func (b *StructLiteral) Value() Value {
+func (b StructLiteral) Value() Value {
87
return Value{b}
88
0 commit comments