Closed drscre closed 2 years ago
I have also seen this issue.
fatal error: concurrent map writes
goroutine 64 [running
]:
runtime.throw(0x93d29a,
0x15)
/usr/local/go/src/runtime/panic.go: 774 +0x72 fp=0xc000750cc0 sp=0xc000750c90 pc=0x42ede2
runtime.mapassign(0x8b0820,
0xc0006e6f60,
0xc000750dc0,
0xc0008b2140)
/usr/local/go/src/runtime/map.go: 680 +0x5aa fp=0xc000750d48 sp=0xc000750cc0 pc=0x40f6da
***/github.com/pariz/gountries.NewFromPath(0xc0003ad790,
0x9,
+1
I think, we should get rid of global instances at all