Comments (5)
接口响应楚做了异常捕获
from pandax.
接口里新起了子协程,子协程 pannic ....就完犊子了啊、、
PandaX\apps\develop\gen\gen.go里的 接口方法 GenConfigure
from pandax.
go语言中被诟病的主要就是error,因此框架做了处理,子协程在进行error捕获,要不然每次都要处理error。
from pandax.
你们的GO项目应该pannic挂了、、昨晚我这边测试的时弄的,有空重启下吧、、不好意思
from pandax.
要不是新司基于这个改的, 我都懒着说, 这错误处理极其不负责,号称企业级也不敢这么干. 又不是java处理错误. 显示处理错理本来就是趋势. 在go中panic,还要做调用栈回溯. 这性能降的猛的一批. 实在不懂处理, 国内基本框架参考kratos,go-zero. 语言层面看看rust处理方法.
from pandax.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandax.