feature: Add flag to show function argument types in visualization
Author: soypatCreated Jul 14, 2026Updated Jul 14, 2026
Proposal: Add a showtypes boolean flag that would show the function arguments as types to the functions/methods.
Demonstration
func Func(a int, b string) (c string, d uint) {}
func (*A) Method(m string) (n int, err error) {} Before -> After
Func -> Func(int,string) (string,uint)
*A.Method -> *A.Method(string) (int,error)
Extra
Maybe showtypes can be a string flag such that it has options: none,types,identifiers,full
Before -> After with full
Func -> Func(a int, b string) (c string, d uint)
*A.Method -> *A.Method(m string) (n int, err error)
Before -> After with identifiers
Sometimes the names of the parameters are self-documenting:
Func -> Func(a, b) (c, d)
*A.Method -> *A.Method(m) (n, err)
Source: ondrajz/go-callvis