package main import ( "fmt" "strings" "time" ) func main(){ fmt.Println(strings.Index("SELECT TRIM(barid) barid,(select bname from bar where pastureid =barmilk. pastureid and id = bar #kptCattleId5822", "#kptCattleId"+"5822" ) ) times , _ := time.Parse("2006-01-02","1899-12-30") println(times.AddDate(0,0,43850).String()) timestr := "01-02-20" println(strings.Count("01-01-20","-")) println("20"+timestr[6:]+"-"+ timestr[:5]) //resp1, err :=http.Post("https://kptyun.cn:8082/auth", "application/x-www-form-urlencoded",nil) // // // //if err != nil { // fmt.Println(err) //} // //defer resp1.Body.Close() //body1, err := ioutil.ReadAll(resp1.Body) //if err != nil { // // handle error //} // //fmt.Println(string(body1)) }