golem-cli 1.3.1

Command line interface for Golem.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Example of exported resources with constructors, methods and static methods

package test:main;

interface iface1 {
   resource resource1 {
    constructor(name: string);
    func1: func();
    func2: func(a: u32) -> f32;
    func3: func(b: u32) -> option<f32>;
    func4: func(c: option<u32>) -> option<f32>;
    // TODO: static functions, currently it seems that implementation has faulty checks on these
  }
}

world api {
  export iface1;
}