哪位解答下 for 循环里面的语句展开的意思是啥

ccoding · · 1096 次点击
stayfoo
stay hungry stay foolish
之前看到一个开源库中的代码,自己看的就有些迷茫: ```go // dayMatches returns true if the schedule's day-of-week and day-of-month // restrictions are satisfied by the given time. func dayMatches(s *SpecSchedule, t time.Time) bool { var ( domMatch bool = 1<<uint(t.Day())&s.Dom > 0 dowMatch bool = 1<<uint(t.Weekday())&s.Dow > 0 ) if s.Dom&starBit > 0 || s.Dow&starBit > 0 { return domMatch && dowMatch } return domMatch || dowMatch } ``` ![屏幕快照 2019-08-23 上午11.07.55.png](https://static.studygolang.com/190823/c388f5ad4885ac0fdf8b9b7441ef69df.png)
#8
更多评论
这不是给buf赋值吗,你这给你不完整啊,buf和bitMap定义在哪里呢?
#1
这不就是个标准的for循环么? 然后给buf赋值啊
#2