Package antideb - basic anti-debugging and anti-reverse engineering protection for your application. Performs basic detection functions such as ptrace, int3, time slots, vdso and others (don't foget to obfuscate your code).
go get github.com/biter777/antideb
func main() {
debug := false // set to false for production
// ... do litle work
if !debug {
go antideb.Detect(true)
}
// ... do main work
}
import "github.com/biter777/antideb"
For more complex options, consult the documentation.