Skip to content

Golang Libraries, Apps, Golang Jobs and Go Tutorials

Golang News, Tutorials, Go Libraries and Golang Jobs

Menu
  • Golang Jobs / Go Developer Jobs
  • Go/JS Full Stack Development

Tag: error handling

Migrate from Hashicorps go-multierror to standard library multierror (Golang 1.20)

No Comments
| Golang Tutorials
Golang 1.20 multierror

A migration guide from github.com/hashicorp/go-multierror to the std library errors package. In go1.20 support for “multierrors” was added. Why migrate? # Migrating from community go modules to standard library implementations is almost always a no-brainer if it provides like for like functionality. Packages in the core go standard library such as errors are covered by the go1.0 backwards compatibility guarantee [0].Because of […]

Read More »

How to do better Error Handling with Golang

No Comments
| Golang Tutorials
Golang Error Handling Tutorial

Takeaways Errors as uint64 for better performance By convention, 0 is “OK” or “no error” Use the exhaustive linter with switch Use enums to define error cases Implement Stringer on enums for human readable error messages Use generic T ~uint64 to type custom structs to errors I have been trying to figure out a better Golang error handling pattern. In my previous […]

Read More »

Error Handling Tutorial with Golang

No Comments
| Golang Tutorials

Introduction to Golang Error Handling As you may already know, Golang has a different way of treating errors, there is no try/catch. You must explicitly check for errors right after calling a function. Like the following example: In the code above, we called the function Println from the fmt package. It prints a message on the standard output and […]

Read More »

Search golang Blog & News

Categories

  • General
  • Golang Applications
  • Golang Blog
  • Golang Jobs
  • Golang Libraries
  • Golang Tutorials

Looking for a Developer Job?

Golang Jobs
Remote Golang Jobs
Fullstack Developer Jobs Board
Rust Jobs
Python Jobs
Javascript Jobs
React Jobs
Java Jobs

Hire Me

  • Golang Software Development
  • Software Architecture and Consulting
  • Full Stack Developer
Software Development Services (Golang/JavaScript)

golang ch Twitter

Follow @golangch

api Authentication Authorization boilerplate channels ci ci/cd cli tool concurrency container context database dba dependency injection devops docker error handling framework game generics github golang jobs golang library golang tutorial GORM gRPC gui image processing kubernetes memory management microservice mongodb monitoring multilanguage oauth2 opensource orm performance redis rest api router starter streaming testing websockets

@golangch golang Twitter Feed

Tweets by @golangch

Golang Libraries, Apps, Golang Jobs and Go Tutorials 2025 . Powered by WordPress