Skip to content

Instantly share code, notes, and snippets.

@ninnemana ninnemana/shit.go

Created Apr 21, 2014
Embed
What would you like to do?
Hate it!
var stmt *thrsafe.Stmt
var err error
switch strings.ToLower(strings.Replace(vc.Type, " ", "", -1)) {
case "abbreviations":
stmt, err = database.GetStatement("vcdb_GetAbbreviations")
break
case "aspiration":
stmt, err = database.GetStatement("vcdb_GetAspiration")
break
case "bedlength":
stmt, err = database.GetStatement("vcdb_GetBedLength")
break
case "bedtype":
stmt, err = database.GetStatement("vcdb_GetBedType")
break
case "bodytype":
stmt, err = database.GetStatement("vcdb_GetBodyType")
break
case "brakeabs":
stmt, err = database.GetStatement("vcdb_GetBrakeABS")
break
case "brakesystem":
stmt, err = database.GetStatement("vcdb_GetBrakeSystem")
break
case "braketype":
stmt, err = database.GetStatement("vcdb_GetBrakeType")
break
case "cylinderheadtype":
stmt, err = database.GetStatement("vcdb_GetCylinderHeadType")
break
case "drivetype":
stmt, err = database.GetStatement("vcdb_GetDriveType")
break
case "eleccontrolled":
stmt, err = database.GetStatement("vcdb_GetElecControlled")
break
case "enginedesignation":
stmt, err = database.GetStatement("vcdb_GetEngineDesignation")
break
case "engineversion":
stmt, err = database.GetStatement("vcdb_GetEngineVersion")
break
case "enginevin":
stmt, err = database.GetStatement("vcdb_GetEngineVIN")
break
case "englishphrase":
stmt, err = database.GetStatement("vcdb_GetEnglishPhrase")
break
case "fueldeliverysubtype":
stmt, err = database.GetStatement("vcdb_GetFuelDeliverySubType")
break
case "fueldeliverytype":
stmt, err = database.GetStatement("vcdb_GetFuelDeliveryType")
break
case "fuelsystemcontroltype":
stmt, err = database.GetStatement("vcdb_GetFuelSystemControlType")
break
case "fuelsystemdesign":
stmt, err = database.GetStatement("vcdb_GetFuelSystemDesign")
break
case "fueltype":
stmt, err = database.GetStatement("vcdb_GetFuelType")
break
case "ignitionsystem":
stmt, err = database.GetStatement("vcdb_GetIgnitionSystem")
break
case "mfr":
stmt, err = database.GetStatement("vcdb_GetMfr")
break
case "mfrbodycode":
stmt, err = database.GetStatement("vcdb_GetMfrBodyCode")
break
case "springtype":
stmt, err = database.GetStatement("vcdb_GetSpringType")
break
case "steeringsystem":
stmt, err = database.GetStatement("vcdb_GetSteeringSystem")
break
case "steeringtype":
stmt, err = database.GetStatement("vcdb_GetSteeringType")
break
case "transmissioncontroltype":
stmt, err = database.GetStatement("vcdb_GetTransmissionControlType")
break
case "transmissionmfrcode":
stmt, err = database.GetStatement("vcdb_GetTransmissionMfrCode")
break
case "transmissionnumspeeds":
stmt, err = database.GetStatement("vcdb_GetTransmissionNumSpeeds")
break
case "transmissiontype":
stmt, err = database.GetStatement("vcdb_GetTransmissionType")
break
case "valves":
stmt, err = database.GetStatement("vcdb_GetValves")
break
case "wheelbase":
stmt, err = database.GetStatement("vcdb_GetWheelBase")
break
default:
}
@pmcginley

This comment has been minimized.

Copy link

pmcginley commented Apr 21, 2014

brute force approach to programming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.