Skip to content

Conversation

@alexuserid
Copy link

Add ability to ignore types. Similar to ignoring packages.
It is useful when we have code like below and a lot of code calls status.String(), so it has a lot of input arrows on graph

type Status string

func (s Status) String() string {
  return s
}

Before:

Output for

go-callvis -algo rta -group type,pkg -focus github.com/syncthing/syncthing/lib/upgrade -limit github.com/syncthing/syncthing -ignore github.com/syncthing/syncthing/lib/logger,github.com/syncthing/syncthing/internal/db/sqlite,github.com/syncthing/syncthing/lib/connections,github.com/syncthing/syncthing/internal/db/olddb/backend,github.com/syncthing/syncthing/lib/fs,github.com/syncthing/syncthing/lib/osutil,github.com/syncthing/syncthing/internal/db github.com/syncthing/cmd/syncthing/
Снимок экрана 2025-07-20 в 21 18 42

After:

Output for

go-callvis -algo rta -group type,pkg -focus github.com/syncthing/syncthing/lib/upgrade -limit github.com/syncthing/syncthing -ignore github.com/syncthing/syncthing/lib/logger,github.com/syncthing/syncthing/internal/db/sqlite,github.com/syncthing/syncthing/lib/connections,github.com/syncthing/syncthing/internal/db/olddb/backend,github.com/syncthing/syncthing/lib/fs,github.com/syncthing/syncthing/lib/osutil,github.com/syncthing/syncthing/internal/db,'*github.com/syncthing/syncthing/cmd/syncthing.autoclosedFile' github.com/syncthing/cmd/syncthing/

Added flag -ignore '*github.com/syncthing/syncthing/cmd/syncthing.autoclosedFile'

Снимок экрана 2025-07-20 в 21 17 03

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant