doesn't work yet, but the structures are all there

This commit is contained in:
2026-03-07 16:21:17 -05:00
parent 8c8a70407b
commit aa5332e994
6 changed files with 308 additions and 15 deletions

View File

@@ -1,7 +1,23 @@
package main
import "git.yetaga.in/alazyreader/microgopt"
import (
"log"
"os"
"strings"
"git.yetaga.in/alazyreader/microgopt"
)
func main() {
microgopt.Run([]string{})
f := "names.txt"
if len(os.Args) > 1 {
f = os.Args[1]
}
b, err := os.ReadFile(f)
if err != nil {
log.Fatalf("%v", err)
return
}
s := string(b)
microgopt.Run(strings.Split(s, "\n"))
}