1package local:demo; 2 3world convert { 4 /// This interface needs to be provided by the host 5 import host: interface { 6 /// Example function that does a simple a × b operation 7 multiply: func(a: f32, b: f32) -> f32; 8 } 9 /// Exported function for computing: (°C × 9/5) + 32 = °F 10 export convert-celsius-to-fahrenheit: func(x: f32) -> f32; 11} 12