Documentation
      ¶
    
    
  
    
  
    Overview ¶
Example (One) ¶
treasureChest := NewChest(TreasureChestType, nil) goldenChest := NewChest(ChestOfChestType, treasureChest) silverChest := NewChest(ChestOfChestType, goldenChest) woodChest := NewChest(ChestOfChestType, silverChest) fmt.Println(woodChest.Open())
Output: [[[$]]]
Index ¶
Examples ¶
Constants ¶
      View Source
      
  
const ( TreasureChestType = iota ChestOfChestType )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChestOfChest ¶
type ChestOfChest struct {
	// contains filtered or unexported fields
}
    func NewChestOfChest ¶
func NewChestOfChest(holdings Chest) *ChestOfChest
func (*ChestOfChest) Open ¶
func (p *ChestOfChest) Open() string
type TreasureChest ¶
type TreasureChest struct {
	// contains filtered or unexported fields
}
    func NewTreasureChest ¶
func NewTreasureChest(holdings Chest) *TreasureChest
func (*TreasureChest) Open ¶
func (p *TreasureChest) Open() string
 Click to show internal directories. 
   Click to hide internal directories.