Go inject generic logger for each usage

后端 未结 0 766
攒了一身酷
攒了一身酷 2021-01-25 19:03

I’ve go structure that needs to get some logger but the trick here is that sometimes it should get Logrus, and sometimes zap, is there a way to do it in Golang ?

File: bl

相关标签:
回答
  • 消灭零回复
提交回复
热议问题