Description

Formatter creates a string formatter for a def.

The verbs:

%n     qualified name
%w     language keyword used to define the def (e.g., 'class', 'type', 'func')
%k     language-specific kind of this def (e.g., 'package', 'field', 'CommonJS module')
%t     type

The flags:

' '    (in `% t`) prepend the language-specific delimiter between a def's name and type

See DefFormatter for more information.

PrintFormatter is referenced in 1 repository

github.com/sourcegraph/srclib