doesn't work yet, but the structures are all there
This commit is contained in:
20
cmd/main.go
20
cmd/main.go
@@ -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"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user