type imports … func (t *imports) Name() string { … } func (t *imports) Parent() string { … } func (t *imports) Usage() string { … } func (t *imports) ShortHelp() string { … } func (t *imports) DetailedHelp(f *flag.FlagSet) { … } // Run performs diagnostic checks on the file specified and either; // - if -w is specified, updates the file in place; // - if -d is specified, prints out unified diffs of the changes; or // - otherwise, prints the new versions to stdout. func (t *imports) Run(ctx context.Context, args ...string) error { … }