Bin-Magic
Bin-Magic
test code: ``` go type FooStruct struct { function func(string) Pointer *int Slice []string Map map[string]string Channel chan string Function func(string) Interface interface{} Transport http.RoundTripper Str2 FooStruct2 Str2p *FooStruct2 }...
``` ================== WARNING: DATA RACE Write at 0x00c0000984d8 by goroutine 31: github.com/gocolly/colly/v2.(*httpBackend).Do() github.com/gocolly/colly/[email protected]/http_backend.go:190 +0x96f github.com/gocolly/colly/v2.(*httpBackend).Cache() github.com/gocolly/colly/[email protected]/http_backend.go:134 +0xad github.com/gocolly/colly/v2.(*Collector).fetch() github.com/gocolly/colly/[email protected]/colly.go:675 +0x559 Previous read at 0x00c0000984d8 by goroutine 39: net/http.(*persistConn).readLoop() net/http/transport.go:2214 +0xd6b...
### The following program `sample.go` triggers an unexpected result ```go package main import ( "fmt" "unsafe" ) func main() { // ptr == nil && len == 0 var nilPtr...
fmt.Printf("0x%04X", 0x0010) // print “0x0010” fmt.Printf("0x%04X", 0xFA10) // print "0xFA10"