In Go, it well known that errors are values. When I first started programming in Go I was dissatisfied at the number of times I was writing error handling blocks like:

if err != nil {
    // do something with error
    log.Println(err.Error())
}

Although I could use some syntactic sugar to make a one-liner I figured it would be much more fun to have a keyboard binding that simpy inputs the error handling text.

My solution for this is keypress.

I simply press the windows key & b simultaneously and the uinput linux kernel module does the rest!