Assuming you use something like this to capture an interrupt signal
var stopChan = make(chan os.Signal, 2)
signal.Notify(stopChan, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
<-stopChan // wait for SIGINT
Use below anywhere in your code to send an interrupt to the next part of the wait.
syscall.Kill(syscall.Getpid(), syscall.SIGINT)
Or if you are in the same package where the stopChan variable is defined. Thus, it becomes available. You can do it.
stopChan <- syscall.SIGINT
stopChan ( ), .
stopChan <- syscall.SIGINT