anonymize

package
v0.0.0-...-0fbd902 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnonymizeTrace

func AnonymizeTrace(r io.Reader, w io.Writer) error

AnonymizeTrace reads a runtime/trace file from r and writes an obfuscated version of it to w. The obfuscation is done by replacing all references to file paths and packages not found Go's standard library with obfuscated versions. The obfuscation is done by replacing all letters that need obfuscation with "XXX". Additionally it keeps any ".go" suffixes and special GC strings intact. For file paths ending in a stdlib package name, only the prefix of the path is obfuscated. On success AnonymizeTrace returns nil. If an error occurs, AnonymizeTrace returns the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL