摘要: 结构体: type Device struct { ID int64 `gorm:"column:id" json:"id"` HardwareId string `gorm:"column:hardware_id" json:"hardwareId"` ModelId int64 `gorm:"c 阅读全文
posted @ 2022-04-26 12:02 技术颜良 阅读(630) 评论(0) 推荐(0)
摘要: 迭代器变量上使用 goroutine 这算高频吧。 package mainimport ( "fmt" "sync")func main() { var wg sync.WaitGroup items := []int{1, 2, 3, 4, 5} for index, _ := range it 阅读全文
posted @ 2022-04-26 10:46 技术颜良 阅读(296) 评论(0) 推荐(0)