golem-examples 1.1.1

Golem example templates
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
package pack:name;

// See https://component-model.bytecodealliance.org/design/wit.html for more details about the WIT syntax

interface api {
  get-last-result: func() -> string;
  fetch-json: func(url: string) -> string;
}

world component-name  {
  import golem:api/host@1.1.0;
  export api;
}