[go-nuts] Re: Java to Go converter - 2

2022-05-21 Thread alex-coder
So, channels. Converter can now convert Java classes to Go channels where possible. The previous example contains a Drop class that matches the conversion criteria, as shown in the Go example code below. Accordingly, if the converter "does not find" a class suitable for conversion, Java multith

[go-nuts] map update in Gin framework. Does it needs mutex?

2022-05-21 Thread Const V
I've the following statements: type database map[string]Item var dbmux sync.Mutex r.POST("/adding", func(c *gin.Context) { dbmux.Lock() defer dbmux.Unlock() db[product.UIID] = item I'm testing it for concurrency GOMAXPROCS=8 CGO_ENABLED=1 go test -count 100 -

[go-nuts] Ways to improve the fuzz testing?

2022-05-21 Thread Kn
Hi, guys. I'm learning the go fuzz testing in go 1.18 now. I find f.Add(args...) the seed corpus is really important. If I specify a seed corpus not so proper, the fuzz testing may spend lots of time, which is not meaningful. Are there ways to help the fuzz engine quickly find the better input