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