componentized

Synthetic sample. This package shows how the directory renders each WIT feature. It isn't published to any registry.

A counter, counting up from zero.

Functions

functionget: func() -> u32

The current count.

functionincrement: func()

Adds one to the count.

WIT

/// A counter, counting up from zero.
interface counter {
  /// The current count.
  get: func() -> u32;

  /// Adds one to the count.
  increment: func();
}