June 2017
Intermediate to advanced
400 pages
10h 32m
English
These steps cover writing and running your application:
package basicerrors import ( "errors" "fmt" ) // ErrorTyped is a way to make a package level // error to check against. I.e. if err == TypedError var ErrorTyped = errors.New("this is a typed error") //BasicErrors demonstrates some ways to create errors func BasicErrors() { err := errors.New("this is a quick and easy way to create an error") fmt.Println("errors.New: ...Read now
Unlock full access