Created
August 1, 2019 07:55
-
-
Save sahajre/ea9e58ad67a4037329b30c7f58366bb1 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 ( | |
"errors" | |
"fmt" | |
) | |
func createError() error { | |
return errors.New("Hello, 世界") | |
} | |
func main() { | |
err := createError() | |
if err != nil { | |
fmt.Println(err) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment