//
pkg.gl
Category
github.com/ibiscum/Go-Programming-Cookbook-Second-Edition
chapter04
internal
basicerrors
package
0.0.0-20241212173216-745cb4b42230
Repository:
https://github.com/ibiscum/go-programming-cookbook-second-edition.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
2
Dependents
1
Files
35 SLOC
#
Functions
BasicErrors
BasicErrors demonstrates some ways to create errors.
SomeFunc
SomeFunc returns an error.
#
Variables
ErrorValue
ErrorValue is a way to make a package level error to check against.
#
Structs
CustomError
CustomError is a struct that will implement the Error() interface.
TypedError
TypedError is a way to make an error type you can do err.(type) == ErrorValue.