1
0
mirror of https://github.com/golang/go synced 2024-10-01 03:08:33 -06:00
go/internal/tool
Ian Cottrell 71d3d868db internal/tool: add a small package to unify the flag handling across all our tools
This adds an opinionated package that has the common code that should be in all
our tools (profiling, logging, context handling etc)
It also adds code for using struct fields as flags to allow us to remove all the
flag globals.

Change-Id: I27bb493ebcce3a86ddcdab87892a2295c237cb16
Reviewed-on: https://go-review.googlesource.com/c/154557
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2018-12-17 23:08:00 +00:00
..
tool.go internal/tool: add a small package to unify the flag handling across all our tools 2018-12-17 23:08:00 +00:00