func (t *templateData) addIdent(x *ast.Ident, receiverType, fieldName string) {
	var zeroValue string
	switch x.String() {
	case "int":
		zeroValue = "0"
	case "string":
		zeroValue = `""`
	case "bool":
		zeroValue = "false"
	case "float64":
		zeroValue = "0"
	case "Status":
		zeroValue = "0"
	case "PrecisionT":
		zeroValue = `""`
	default:
		zeroValue = fmt.Sprintf("%s{}", x.String())
	}

	t.Accessors = append(t.Accessors, newAccessor(receiverType, fieldName, x.String(), zeroValue))
}
func (t *templateData) addIdent(x *ast.Ident, receiverType, fieldName string) {
	var zeroValue string
	switch x.String() {
	case "int":
		zeroValue = "0"
	case "string":
		zeroValue = `""`
	case "bool":
		zeroValue = "false"
	case "float64":
		zeroValue = "0"
	case "Status":
		zeroValue = "0"
	case "PrecisionT":
		zeroValue = `""`
	default:
		zeroValue = fmt.Sprintf("%s{}", x.String())
	}

	t.Accessors = append(t.Accessors, newAccessor(receiverType, fieldName, x.String(), zeroValue))
}
func ( t * templateData ) addIdent ( x * ast . Ident , receiverType , fieldName string ) { var zeroValue string switch x . String ( ) { case " " : zeroValue = " " case " " : zeroValue = `""` case " " : zeroValue = " " case " " : zeroValue = " " case " " : zeroValue = " " case " " : zeroValue = `""` default : zeroValue = fmt . Sprintf ( " " , x . String ( ) ) } t . Accessors = append ( t . Accessors , newAccessor ( receiverType , fieldName , x . String ( ) , zeroValue ) ) }
// addIdent adds an accessor for an identifier, for a given receiver and field
addIdent adds an accessor for an identifier for a given receiver and field