Replies: 1 comment 1 reply
-
I do not recommend using runtime info to get handler etc name. This is because - as you add/remove code and use anonymous functions for handlers, their function names change therefore you are making your code/systems brittle/easy to break with changes. This is particularly when you expose these changing names to external systems. ala register to (tele)metrics, logging, tracing systems etc. It is really pain in the butt to search logs when some identifiers change over time. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm a golang newbie, and use echo framework programe a game HTTP server.
Now set cache package like "Monster" / "Map" / "Goods" / etc. and them will throw "cacheNotExist" or other error.
You can see: whatever some body (goods or map), the error is same, so:
How to get error path and error call link in runtime?
I searched
error path
but not found result...or my learn english is slowBeta Was this translation helpful? Give feedback.
All reactions