Documentation ¶ Index ¶ type Disinfect type Infect type Infection func NewInfection(name string, infect Infect, disinfect Disinfect) *Infection func (i *Infection) Infect(fn func()) func (i *Infection) String() string type Virus Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Disinfect ¶ type Disinfect func() type Infect ¶ type Infect func() type Infection ¶ type Infection struct { // contains filtered or unexported fields } func NewInfection ¶ func NewInfection(name string, infect Infect, disinfect Disinfect) *Infection func (*Infection) Infect ¶ func (i *Infection) Infect(fn func()) func (*Infection) String ¶ func (i *Infection) String() string type Virus ¶ type Virus interface { Incubate(node ast.Node, typeInfo *types.Info) []*Infection } Source Files ¶ View all Source files infection.govirus.go Directories ¶ Show internal Expand all Path Synopsis arithmetic arithmeticassignment arithmeticassignmentinvert bitwise cancelnil comparison comparisoninvert comparisonreplace floatdecrement floatincrement integerdecrement integerincrement loopbreak loopcondition rangebreak Click to show internal directories. Click to hide internal directories.