Warning! The code relies on private macOS APIs, so no guarantees.
package main
import (
"github.com/aprosvetova/actuator"
"time"
)
func main() {
for {
actuator.Down(actuator.HapticFeedbackTypeStrong)
time.Sleep(20 * time.Millisecond)
actuator.Up(actuator.HapticFeedbackTypeStrong)
time.Sleep(100 * time.Millisecond)
}
}