type links … func (l *links) Name() string { … } func (l *links) Parent() string { … } func (l *links) Usage() string { … } func (l *links) ShortHelp() string { … } func (l *links) DetailedHelp(f *flag.FlagSet) { … } // Run finds all the links within a document // - if -json is specified, outputs location range and uri // - otherwise, prints the a list of unique links func (l *links) Run(ctx context.Context, args ...string) error { … }