Created
April 12, 2014 09:37
-
-
Save peterbourgon/10527082 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 foo | |
| import "net/http" | |
| func Execute() error { | |
| _, err := http.Get("http://google.com") | |
| if err != nil { | |
| return fmt.Errorf("execution unavailable: %s", err) | |
| } | |
| return nil | |
| } |
This file contains hidden or 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 "foo" | |
| func main() { | |
| err := foo.Execute() | |
| if err != nil { | |
| panic(err) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment