github.com/looshch/gouse (go): gouse toggles ‘declared and not used’ errors by using idiomatic _ = notUsedVar and leaving a TODO comment.  Usage:  By default, gouse accepts code from stdin or from a file provided as a path argument and writes the toggled version to stdout. ‘-w’ flag writes the result back to the file. If multiple paths provided, ‘-w’ flag is required.  First it tries to remove previously created fake usages. If there is nothing to remove, it tries to build an input and checks the build stdout for ‘declared and not used’ errors. If there is any, it creates fake usages for unused variables from the errors.  Examples
Keywords: devtool|go