Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Color cannot be used from multiple goroutines safely #31

Closed
ashrwin opened this issue Jun 20, 2016 · 1 comment
Closed

Color cannot be used from multiple goroutines safely #31

ashrwin opened this issue Jun 20, 2016 · 1 comment

Comments

@ashrwin
Copy link

ashrwin commented Jun 20, 2016

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

  • Use log package, which is safe to be used across multiple goroutines
  • Add a mutex
@fatih
Copy link
Owner

fatih commented Jun 29, 2016

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

@fatih fatih closed this as completed Jun 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants