Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

flight source realm

Package flight is a Cellar challenge about panic, recover and partial state changes.

Overview

Package flight is a Cellar challenge about panic, recover and partial state changes.

Functions 5

func Render

1func Render(_ string) string
source

Render shows the wine list and the open tabs.

func Settle

crossing Action
1func Settle(cur realm)
source

Settle closes your tab and opens a fresh one.

func Taste

crossing Action
1func Taste(cur realm, flight string)
source

Taste pours a flight: up to three wine names separated by commas, each for one token.

func Tasted

Action
1func Tasted(addr address) (wines, tokensLeft int)
source

Tasted returns how many of the nine wines addr has tasted, and the tokens left on the tab.

Dependencies

Source Files 4