Documentation ¶
Index ¶
- func ClearHooks()
- func NodeId(n ast.Node, file string, fSet *token.FileSet) *ast.BasicLit
- func RegisterDefaultHooks(disabledSanitizers []string)
- func RegisterFunctionHook(functionName, packagePath, hookName string)
- func RegisterMethodHook(methodName, receiverType, hookName string)
- func SetSanitizersPackagePath(pkgPath string)
- type FunctionHook
- type Hooks
- type IdFunction
- type MethodHook
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearHooks ¶
func ClearHooks()
func RegisterDefaultHooks ¶
func RegisterDefaultHooks(disabledSanitizers []string)
func RegisterFunctionHook ¶
func RegisterFunctionHook(functionName, packagePath, hookName string)
func RegisterMethodHook ¶
func RegisterMethodHook(methodName, receiverType, hookName string)
func SetSanitizersPackagePath ¶
func SetSanitizersPackagePath(pkgPath string)
Types ¶
type FunctionHook ¶
func MatchingFunctionHook ¶
func MatchingFunctionHook(function, pkg string) *FunctionHook
type Hooks ¶
type Hooks struct { Functions []FunctionHook Methods []MethodHook }
type IdFunction ¶
type MethodHook ¶
func MatchingMethodHook ¶
func MatchingMethodHook(method, receiverType string) *MethodHook
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
func NewTransformer ¶
func NewTransformer(file *ast.File, fileSet *token.FileSet, filePath string, typeInfo *types.Info, hookIdFn IdFunction) *Transformer
func (*Transformer) TransformFile ¶
func (t *Transformer) TransformFile() int
Click to show internal directories.
Click to hide internal directories.