-
Hello All,
I'm seeking the best way to unit testing my handler:
In main file:
` func init() {
db.Connect()
}
func main() {
// Init API
api := gin.Default()
// Using …
-
**Describe the bug**
A cgo bug.
```
occamy | [GIN] 2019/11/12 - 15:58:36 | 200 | 129.4µs | 172.16.238.1 | POST /api/v1/login
occamy | time="2019-11-12T15:58:36Z" level=info ms…
-
go install failed
```
chc@dc03:~/git/biedatransfer$ go install github.com/alufers/biedatransfer
# github.com/hosom/gomagic
../../go/pkg/mod/github.com/hosom/gomagic@v0.0.0-20160718182707-cbc00aac9…
-
## kube-prometheus-stack Pod Log
Mon, Nov 8 2021 2:31:10 pm | {"level":"warning","msg":"invalid serialization format, using json","serialization-format-value":"","time":"2021-11-08T05:31:10Z"}
Mon…
-
I notice there is a new method called DataFromReader on Context, this method allows us prepare response data from reader, but there is a param called contentLength, this param is not easy to get from …
-
### What version of Go are you using (`go version`)?
$ go version
go version go1.14.2 windows/amd64
### Does this issue reproduce with the latest release?
Yes
### What operating s…
-
I want to use gocron with gin router. But it seems that gin router and gocron block each other.
If i start goncron before router.Run, the genData will be done, but can not get response from /ex/getda…
-
I use r.Run to open server , but I found it's will not open server!
this is my code:
main.go
`
func main() {
interfaceAddr, err := net.InterfaceAddrs()
//fmt.Println(interfaceAddr)
if er…
-
# 开启博客之路 | Go 语言编程之旅
2.1 开启博客之路 2.1.1 用什么 本次博客项目将选用 gin 框架来完成开发,gin 是用 Go 编写的一个 HTTP Web 框架,它具有类似于 Martini 的 API 风格,并且它使用了著名的开源项目 httprouter 的自定义版本作为路由基础,使得它的性能表现更高更好,相较 Martini 大约提高了 40 倍。
另外 gin 除了…
-
Not sure what's going on - browserless works fine, but JSON Genius just ends up running and then tanking a few seconds later. I'm using the default `docker-compose.yml`.
```[GIN] 2023/10/06 - 12:0…