Documentation ¶
Overview ¶
Package source helps deal with Go source code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenameChannel ¶
RenameChannel renames a package-level channel variable in a snippet of code.
Types ¶
type StringSet ¶
type StringSet map[string]struct{}
StringSet stores an unordered set of strings.
func ExtractChannels ¶
ExtractChannels extracts channel names used. The channel definitions are compared against definitions in defs, to avoid false positives (shadowed, ranging over non-channels).
func NewStringSet ¶
NewStringSet creates a StringSet with some elements.
Click to show internal directories.
Click to hide internal directories.