Skip to content

Instantly share code, notes, and snippets.

@jbuchbinder
Created December 17, 2015 13:54
Show Gist options
  • Save jbuchbinder/014aa5acfcdf47963a53 to your computer and use it in GitHub Desktop.
Save jbuchbinder/014aa5acfcdf47963a53 to your computer and use it in GitHub Desktop.
Coffee.
package main
import "vendor/coffee"
func main() {
cup, err := coffee.NewCoffee()
if err != nil {
panic()
}
for {
if cup.Empty {
cup.Refill()
}
cup.Drink()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment