Skip to content

Instantly share code, notes, and snippets.

@markchadwick
Created November 1, 2012 16:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markchadwick/3994969 to your computer and use it in GitHub Desktop.
Save markchadwick/3994969 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func whatsMyName() (string, error) {
return "", nil
}
func doThatOneThing(name string) (err error) {
foo, err := whatsMyName()
bar, err := whatsMyName()
fmt.Println("Foo: %s, Bar: %s", foo, bar)
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment