@@ 2,9 2,17 @@ package main
import (
"fmt"
+ "os"
"os/exec"
)
-func N(a ...any) {
+func n(a ...any) {
_ = exec.Command("notify-send", fmt.Sprint(a...)).Run()
}
+
+func w(filename string, a any) {
+ err := os.WriteFile(filename, []byte(fmt.Sprintf("%#v\n", a)), 0600)
+ if err != nil {
+ panic(err.Error())
+ }
+}