Created
November 1, 2012 16:47
-
-
Save markchadwick/3994969 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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