in glean_parser/go_server.py [0:0]
def generate_metric_type(metric_type: str) -> str:
if metric_type == "quantity":
return "int64"
elif metric_type == "string":
return "string"
elif metric_type == "boolean":
return "bool"
elif metric_type == "datetime":
return "time.Time"
else:
print("❌ Unable to generate Go type from metric type: " + metric_type)
exit
return "NONE"