Skip to main content

gen_go_error_struct

Function gen_go_error_struct 

Source
pub fn gen_go_error_struct(error: &ErrorDef, pkg_name: &str) -> String
Expand description

Generate the structured error type (struct + Error() method) for a single error definition. Sentinel errors are emitted separately by gen_go_sentinel_errors.