1 2 3 4 5 6 7
// {{ go_type_name }} is a structured error type. type {{ go_type_name }} struct { Code string Message string } func (e *{{ go_type_name }}) Error() string { return e.Message }