-
-
Save tebeka/c590344861999b6df6bf1935a0697437 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 main | |
import ( | |
"fmt" | |
) | |
type Error int | |
// Error implements the built-in error interface | |
func (e *Error) Error() string { | |
return fmt.Sprintf("<Error %d>", *e) | |
} | |
func Dial(uri string) error { | |
var e *Error | |
// TODO | |
return e | |
} | |
func main() { | |
if err := Dial("ifps://caffebabe/data.json"); err != nil { | |
fmt.Println("ERROR:", err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment