golem-examples 1.1.1

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

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

interface component-name-api {
  add: func(value: u64);
  get: func() -> u64;
}

world component-name {
  import wasi:cli/environment@0.2.0;

  export component-name-api;
}