Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 373 Bytes
package main
import (
func main() {
// Tell memguard to listen out for interrupts, and cleanup in case of one.
memguard.CatchInterrupt(func() {
fmt.Println("Interrupt signal received. Exiting...")
// Make sure to destroy all LockedBuffers when returning.
defer memguard.DestroyAll()
// TODO: continue code from here
You can’t perform that action at this time.