~geb/sup

b70759e1fceea8781c90474771736771a7b4657e — John Gebbie 1 year, 11 months ago 2b5f164
update debug.go
1 files changed, 9 insertions(+), 1 deletions(-)

M debug.go
M debug.go => debug.go +9 -1
@@ 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())
	}
}