Versions in this module Expand all Collapse all v0 v0.1.0 Apr 3, 2022 Changes in this version + var ErrCyclicReplacement = fmt.Errorf("cyclic replacement detected") + var ErrFunctionNotFound = replacer.ErrFunctionNotFound + var ErrLongDistance = replacer.ErrLongDistance + var ErrShortFunction = replacer.ErrShortFunction + var ErrUnsupportedArchitecture = replacer.ErrUnsupportedArchitecture + func RegisterReplacement(p *Patcher, original, replacement T) + type PatchAndExecOption interface + func RemovePatchedExecutable() PatchAndExecOption + func WithEnvVarName(name string) PatchAndExecOption + func WithEnvVarValue(value string) PatchAndExecOption + type Patcher struct + func NewPatcher() *Patcher + func (p *Patcher) Apply(cb func(patcher *Patcher)) *Patcher + func (p *Patcher) MustPatchAndExec(opts ...PatchAndExecOption) + func (p *Patcher) PatchAndExec(opts ...PatchAndExecOption) error