mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:33:04 +08:00
14 lines
203 B
Go
14 lines
203 B
Go
// errors.go
|
|
package main
|
|
|
|
import (
|
|
"errors"
|
|
"fmt"
|
|
)
|
|
|
|
var errNotFound error = errors.New("Not found error")
|
|
|
|
func main() {
|
|
fmt.Printf("error: %v", errNotFound)
|
|
}
|
|
// error: Not found error |