package main import ( "bufio" "log" "os" ) func main() { running := true reader := bufio.NewReader(os.Stdin) for running { data, _, _ := reader.ReadLine() command := string(data) if command == "stop" { running = false } log.Println("command", command) } }

分类: web

标签: