model

package
v0.0.0-...-b9f111c Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2015 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gopher

type Gopher struct {
	Id      bson.ObjectId `bson:"_id"`
	Name    string
	Skillz  []string
	Born    time.Time
	Mutated time.Time
}

func (Gopher) Kapow

func (gopher Gopher) Kapow() error

Pow removes a gopher's skills. However, if a gopher already has no skills, Kapow returns an error If gopher already has no skills, then return an error NOTE: this is used inside gophertron as an example of incorrect pointer usage

func (*Gopher) Zap

func (gopher *Gopher) Zap()

Zap removes a gopher's skillz

Jump to

Keyboard shortcuts

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