Our root directory is getting crowded and it is also difficult to organize the "host imports" concept due to this. This moves common and language-specific imports into their own directory. This will break go import signatures on the next release, but is more sustainable overall. Signed-off-by: Adrian Cole <adrian@tetrate.io>
9 lines
193 B
TypeScript
9 lines
193 B
TypeScript
export function hello_world(arg: u32): u32 {
|
|
trace("hello world", 2, arg + 0.1, arg + 0.2);
|
|
return arg + 3;
|
|
}
|
|
|
|
export function goodbye_world(): void {
|
|
throw new Error("sad sad world");
|
|
}
|