Errors with stack trace

Posted by 夏泽民

https://rafallorenz.com/go/go-error-stack-trace/ https://golang.org/pkg/runtime/#Caller https://golang.org/pkg/errors/#As https://gist.github.com/vardius/56b224de0a69522a24f021642449db17



golang动态加载原生代码思路

Posted by 夏泽民

golang动态加载原生代码思路(非plugin,非so文件。使用mmap形式运行机器码,可释放)



dto

Posted by 夏泽民

https://juejin.im/post/5ed9e10151882542e8541f01 model层不允许申明json tag, dto层又重复造轮子,一个表的字段可能20个左右,那么赋值语句难受死了。 其次就是json直接解析,model层的time.Time,完蛋格式不对,返回的数据不对。



ddd

Posted by 夏泽民

什么是DDD? 以下是考虑使用DDD的原因:



compiler

Posted by 夏泽民

Inlining is the process by which you bring a function into another function, bypassing the need for a function call. Even when the function call is inexpensive, inlining often brings many benefits.



Search

Popular posts

Anything in here will be replaced on browsers that support the canvas element

Recent posts

This blog is maintained by 夏泽民

Get in touch with me at 465474307@qq.com

Subscribe to our mailing list

* indicates required