goreturns - A gofmt/goimports-like tool for Go programmers that fills in Go return statements with zero values to match the func return types
This tool adds zero-value return values to incomplete Go return statements, to save you time when writing Go. It is inspired by and based on goimports. Editor integration: replace gofmt or goimports in your post-save hook with goreturns. By default goreturns calls goimports on files before performing its own processing.