Caesar M. Tsai
Caesar M. Tsai
collectionFormat ? // @Param collection query []string false "string collection" collectionFormat(multi) [https://github.com/swaggo/swag#available](https://github.com/swaggo/swag#available) ``` Determines the format of the array if type array is used. Possible values are: csv - comma...
I have the same problem How do I solve this? My version go version go1.16.4 linux/amd64
I think we can keep the original Converter interface. We just need to change the generated code implementation from a struct to a function. The function name can be created...
> 否則的話 stacktrace 的紀錄就會寫 annoymous X annoymous O anonymous 我沒在寫 js 也不會寫js的應用 不過常看你寫的js原理
> > 目前在code裡面還看到滿多log的指令的,感覺可以減少一些 > > 我覺得只要request進來後log一下相關資訊一次就好 例如urlpath method ip 之類的 > > 之後如果發生error的話再 log 即可(覺得可以只在 usecase 層 log 就好) 同意只需要做一次 log 我看書的建議是說 其他層 有錯誤, 應該往上傳 不應該 log log 在系統的邊界處執行就可以 系統邊界處...
> 可考慮 > > https://github.com/spf13/jwalterweatherman > https://github.com/sirupsen/logrus https://github.com/rs/zerolog
> Golang 中應該會滿常碰到 function 中會重複呼叫同一個 function 的情形,尤其是當系統變的龐大且複雜的時候就更容易產生以下的關係: > > ``` > A -> B -> C > └ -> D -> C > 這有一個很大的問題上面也提到了,當 DoSomethingA 和/或 DoSomethingB 是使用外部的 function 的時候就無法保證這件事,既然如此,這樣是不是應該要在出錯的當下記錄起足以...