pub fn gen_go_error_struct(error: &ErrorDef, pkg_name: &str) -> StringExpand description
Generate the structured error type (struct + Error() method) for a single
error definition. Sentinel errors are emitted separately by
gen_go_sentinel_errors.
pub fn gen_go_error_struct(error: &ErrorDef, pkg_name: &str) -> StringGenerate the structured error type (struct + Error() method) for a single
error definition. Sentinel errors are emitted separately by
gen_go_sentinel_errors.