Documentation
¶
Overview ¶
Package codemod edits Go source the way a developer would: it appends an element to the slice literal returned by a known function and adds the imports it needs. Registration in Vukem apps is plain code (no init(), no reflection), so generators use this to wire what they create.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrMarkerNotFound = errors.New("codemod: marker not found")
ErrMarkerNotFound means the file no longer has the expected shape (func Name() []T { return []T{ ... } }); callers print the snippet for the user to add by hand instead.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.