Skip to main content

gen_go_functional_options

Function gen_go_functional_options 

Source
pub fn gen_go_functional_options(
    typ: &TypeDef,
    type_mapper: &dyn Fn(&TypeRef) -> String,
) -> String
Expand description

Generate Go functional options pattern for a type with has_default. Returns: type definition + Option type + WithField functions + NewConfig constructor