Beispiel #1
0
func (codegen *_CodeGen) fieldDecl(field *ast.Field) string {
	return fmt.Sprintf("@property%s %s %s;", propertyAttr(field.Type), codegen.typeName(field.Type), strings.Title(field.Name()))
}
Beispiel #2
0
func (codegen *_CodeGen) unmarshalField(field *ast.Field) string {
	return codegen.unmarshal("_"+strings.Title(field.Name()), field.Type, 1)
}
Beispiel #3
0
func (codegen *_CodeGen) unmarshalfield(field *ast.Field) string {
	return codegen.readType(fieldname(field.Name()), field.Type, 3)
}