gorhill / cronexpr

Cron expression parser in Go language (golang)
683 stars 168 forks source link

fix concurrent map write panic when init #20

Closed aiquestion closed 7 years ago

aiquestion commented 7 years ago

this p-r is to fix issue: https://github.com/gorhill/cronexpr/issues/19

please help to review it. thx~

aiquestion commented 7 years ago

sorry, just found that double check locking is not safe in golang. will send another p-r for this.