Open yingjie52 opened 1 year ago
you can
conc := gjson.Get(json, "test1.concurrency").Int()
for idx := int64(0); idx < cnt; idx++ {
fmt.Println(idx)
}
package main
import "fmt"
func main() {
cnt := int64(10)
for idx := int64(0); idx < cnt; idx++ {
fmt.Println(idx)
}
}
var i int64
for i = 0; i < conc; i++
conc := gjson.Get(json, "test1.concurrency").Int()
raise error: 无效运算: i < conc(类型 int 和 int64 不匹配)