examples/

directory
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2026 License: Apache-2.0

Directories

Path Synopsis
bom
Package bom rolls up a bill of materials by tail recursion, as a state machine.
Package bom rolls up a bill of materials by tail recursion, as a state machine.
rollup
Package rollup is the holder for package bom.
Package rollup is the holder for package bom.
fib
Package fib computes Fibonacci numbers by tail recursion, as a state machine:
Package fib computes Fibonacci numbers by tail recursion, as a state machine:
cmd/fib command
Command fib prints the nth Fibonacci number.
Command fib prints the nth Fibonacci number.
mutex
client
Package client is one client of a lock server: it asks for the lock, holds it once granted, and releases it.
Package client is one client of a lock server: it asks for the lock, holds it once granted, and releases it.
Package order is a payment-order state machine: submit a charge to a provider, resend on timeout up to MaxRetries, and finish as Paid, Failed or Cancelled.
Package order is a payment-order state machine: submit a charge to a provider, resend on timeout up to MaxRetries, and finish as Paid, Failed or Cancelled.
cmd/orderd command
Command orderd drives one order from commands on standard input ("submit", "ack", "cancel"), with a real timer for timeouts.
Command orderd drives one order from commands on standard input ("submit", "ack", "cancel"), with a real timer for timeouts.
Package turnstile is the smallest machine merilo checks: one mode, no actions, so Fire returns only the next machine and the outcome.
Package turnstile is the smallest machine merilo checks: one mode, no actions, so Fire returns only the next machine and the outcome.
twophase
coord
Package coord is a two-phase-commit coordinator for two participants.
Package coord is a two-phase-commit coordinator for two participants.
Package watchdog fires when it is not kicked in time.
Package watchdog fires when it is not kicked in time.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL