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.

vintage source realm

Package vintage is a Cellar challenge about trusting interface values.

Overview

Package vintage is a Cellar challenge about trusting interface values.

Functions 4

func Appraise

crossing Action
1func Appraise(cur realm, b Bottle)
source

Appraise certifies b if it was bottled before 1900.

func Render

1func Render(_ string) string
source

Render shows the appraiser's window.

Types 1

type Bottle

interface
1type Bottle interface {
2	Vintage() int
3	Label() string
4	seal()
5}
source

Bottle is a bottle from this cellar. The seal method is unexported, so no other package can declare a type that implements Bottle.

Dependencies

Source Files 4