this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

lexgen: small tweaks

+3 -3
+1 -1
lex/gen.go
··· 196 196 if buf.Len() == 0 { 197 197 return nil 198 198 } 199 - outf("}") 199 + outf("}\n") 200 200 _, err := w.Write(buf.Bytes()) 201 201 return err 202 202 }
+2 -2
lex/type_schema.go
··· 641 641 pf("type %s bool\n", name) 642 642 case "object": 643 643 if ts.needsType { 644 - pf("//\n// RECORDTYPE: %s\n", name) 644 + pf("\n// RECORDTYPE: %s\n", name) 645 645 } 646 646 647 647 pf("type %s struct {\n", name) ··· 818 818 pf("\t\treturn json.Marshal(t.%s)\n\t}\n", vname) 819 819 } 820 820 821 - pf("\treturn nil, fmt.Errorf(\"cannot marshal empty enum\")\n}\n") 821 + pf("\treturn nil, fmt.Errorf(\"cannot marshal empty enum\")\n}\n\n") 822 822 return nil 823 823 } 824 824