Skip to main content

apply_fixes_go

Function apply_fixes_go 

Source
pub fn apply_fixes_go(source: &str, layouts: &[&StructLayout]) -> String
Expand description

Apply Go struct reorderings in-place, returning the modified source. Preserves field tags and comments verbatim; falls back to IR-based generation.