iafan / goplayspace

Advanced Go Playground frontend written in Go, with syntax highlighting, turtle graphics mode, and more
https://goplay.space
Other
981 stars 63 forks source link

Use time.Duration as type for delay #3

Closed bbrks closed 7 years ago

bbrks commented 7 years ago

Fixes integer overflows on durations longer than 2147483647 nanoseconds (2.15 seconds) on 32-bit machines.

This could also be achieved by using int64, but time.Duration is clearer.

screen shot 2017-06-05 at 22 29 20
iafan commented 7 years ago

Thanks!