自己写的go定时器执行任务,欢迎拍砖。 package main import ( "fmt" "time" "bufio" "os" "strings" "errors" "io/ioutil" "strconv" "regexp" "net/http" ) var taskList []*Task type MyTimer struct{ Config []map[string]interface{} } func NewMyTimer() *MyTimer{ return &MyTimer...