Abhinav Gupta | About

Log

2022

Go Patterns and Practices talk

Subcommands with Go's flag package 7 minutes

Handle spaces in file names with xargs 5 minutes

Mock programs to test os/exec in Go 13 minutes

2021

Go errors: Use %q with fmt.Errorf 1 minutes

How to write flexible YAML shapes in Go 8 minutes

2020

How to parse Newline Delimited JSON in Go 2 minutes

Go Gotcha: Struct pointers as map keys 2 minutes

Fix-up Git commits with Tig 4 minutes

2019

Filter Go slices without allocating 4 minutes

Restack Git branches automatically 7 minutes

Go Antipatterns: Channels that fire once 3 minutes

Understanding Go's token.Pos 5 minutes

2018

Go Antipatterns: With* Context Managers 4 minutes