Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是新手,不能真正把头放在它周围。我想在每个 log4go.Error("An error") 调用上覆盖 go "log4go" 中现有包中的 func。最好的方法是什么?如果我想增强现有方法,还有什么办法?如果它是一个基本问题,请承担。
你根本无法做到这一点。没有“最好的方法”来做不可能的事情。
你所拥有的只是替代品:
log4go.Error
myError