Files
Tyler Rockwood b5169d9902 examples: add component model example (#7759)
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
2024-01-09 21:55:05 +00:00

12 lines
386 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package local:demo;
world convert {
/// This interface needs to be provided by the host
import host: interface {
/// Example function that does a simple a × b operation
multiply: func(a: float32, b: float32) -> float32;
}
/// Exported function for computing: (°C × 9/5) + 32 = °F
export convert-celsius-to-fahrenheit: func(x: float32) -> float32;
}