fatih / color

Color package for Go (golang)
https://pkg.go.dev/github.com/fatih/color
MIT License
7.36k stars 619 forks source link

Color cannot be used from multiple goroutines safely #31

Closed ashrwin closed 8 years ago

ashrwin commented 8 years ago

Color uses the fmt package which is not safe to be used across multiple concurrent goroutines. We need to either

fatih commented 8 years ago

Hi @ashrko619 This is ok. You should assume that all libraries/package are not safe by default (unless it's stated in the document). I do not state it and I don't want it to be that way. This should be used just like any other library, so it's the users responsibility to guard it. Thanks