You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
559 B
Go
28 lines
559 B
Go
// https://www.dolthub.com/blog/2022-11-28-go-os-exec-patterns/
|
|
|
|
package main
|
|
|
|
import (
|
|
"gosay/cmd"
|
|
)
|
|
|
|
func main() {
|
|
cmd.Execute()
|
|
//reader := bufio.NewReader(os.Stdin)
|
|
|
|
//for {
|
|
// fmt.Println("Give me something to say: ")
|
|
// msg, err := reader.ReadString('\n')
|
|
// if err != nil {
|
|
// slog.Error("encoutered error reading from stdin", "error", err)
|
|
// continue
|
|
// }
|
|
// contents := strings.TrimSpace(msg)
|
|
// err = say([]byte(contents))
|
|
// if err != nil {
|
|
// slog.Error("encountered error in say command", "error", err)
|
|
// }
|
|
// }
|
|
|
|
}
|