简体   繁体   中英

How to prevent a particular line from printing in the console

I use a Go function that at some line it prints something in the console. As I can't modify them, I would like to know if there is a solution to not printing while using these functions.

  • If you are using a third-party library and that is printing msg then you don't have a hold on that.
  • You can use log in your code

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM