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: float32, b: float32) -> float32; 8 } 9 /// Exported function for computing: (°C × 9/5) + 32 = °F 10 export convert-celsius-to-fahrenheit: func(x: float32) -> float32; 11} 12