func formatType(t Type, source bool) (s string) {
	switch t {
	case VarintType:
		s = pkg + ".VarintType"
	case Fixed32Type:
		s = pkg + ".Fixed32Type"
	case Fixed64Type:
		s = pkg + ".Fixed64Type"
	case BytesType:
		s = pkg + ".BytesType"
	case StartGroupType:
		s = pkg + ".StartGroupType"
	case EndGroupType:
		s = pkg + ".EndGroupType"
	default:
		s = fmt.Sprintf("Type(%d)", t)
	}
	if !source {
		s = strings.TrimSuffix(trimPackage(s), "Type")
	}
	return s
}
// formatType returns the name for Type.
formatType returns the name for Type.
// formatType returns the name for Type .
func formatType(t Type, source bool) (s string) {
	switch t {
	case VarintType:
		s = pkg + ".VarintType"
	case Fixed32Type:
		s = pkg + ".Fixed32Type"
	case Fixed64Type:
		s = pkg + ".Fixed64Type"
	case BytesType:
		s = pkg + ".BytesType"
	case StartGroupType:
		s = pkg + ".StartGroupType"
	case EndGroupType:
		s = pkg + ".EndGroupType"
	default:
		s = fmt.Sprintf("Type(%d)", t)
	}
	if !source {
		s = strings.TrimSuffix(trimPackage(s), "Type")
	}
	return s
}
func formatType ( t Type , source bool ) ( s string ) { switch t { case VarintType : s = pkg + " " case Fixed32Type : s = pkg + " " case Fixed64Type : s = pkg + " " case BytesType : s = pkg + " " case StartGroupType : s = pkg + " " case EndGroupType : s = pkg + " " default : s = fmt . Sprintf ( " " , t ) } if ! source { s = strings . TrimSuffix ( trimPackage ( s ) , " " ) } return s }
formatType returns the name for Type.
formatType returns the name for Type .