joseph folayanjosephfolayan.hashnode.dev·Jun 24, 2023Error Handling In GoIn Go, error handling differs from other programming languages in that it doesn't rely on shipping explicit error messages. Instead, Go utilizes the concept of returning multiple values, where the first value represents the expected or appropriate va...Discuss·10 likes·156 readsGo Language
Pratik JagrutPropsj.codes·Nov 19, 2022Error Handling in Go (Part-2)Creating errors with errors.New() function If we don't need a custom type for an error, and we can work with a single error type then we can use errors.New() function to create an error on the fly. Creating a new error is simple. We simply need to ca...Discuss·1 like·165 readsGolangGo Language
Pratik JagrutPropsj.codes·Nov 11, 2022Error Handling in Go (Part-1)Error is a result of unexpected circumstances or abnormal behaviour of the program. For example, a network connection error, a user entering incorrect data, a function invoked with inaccurate values or a file not found, and many other scenarios could...Discuss·150 readsGolangGo Language