예제 #1
0
파일: codegen.go 프로젝트: gsrpc/gsrpc
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()))
}
예제 #2
0
파일: codegen.go 프로젝트: gsrpc/gsrpc
func (codegen *_CodeGen) unmarshalField(field *ast.Field) string {
	return codegen.unmarshal("_"+strings.Title(field.Name()), field.Type, 1)
}
예제 #3
0
파일: codegen.go 프로젝트: gsrpc/gsrpc
func (codegen *_CodeGen) unmarshalfield(field *ast.Field) string {
	return codegen.readType(fieldname(field.Name()), field.Type, 3)
}