MCPcopy Create free account
hub / github.com/Go-Learning-Land/Go-Learning-Archive / Error

Method Error

GolangBasics/GoByExample/022Error.go:23–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21}
22
23func (e *argError) Error() string {
24 return fmt.Sprintf("%d - %s", e.arg, e.prob)
25}
26
27func f2(arg int) (int, error) {
28 if arg == 42 {

Callers 15

GetConnectionFunction · 0.45
GetCustomersFunction · 0.45
InsertCustomerFunction · 0.45
UpdateCustomerFunction · 0.45
deleteCustomerFunction · 0.45
GetConnectionFunction · 0.45
GetCustomerByIdFunction · 0.45
GetCustomersFunction · 0.45
InsertCustomerFunction · 0.45
UpdateCustomerFunction · 0.45
DeleteCustomerFunction · 0.45
slowHandlerFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestParserLineErrsFunction · 0.36