Goland Writing contains template The program
Use template
Templates , Compiled from the command line (build
) Execute executable , Or run it directly (run
), It can be executed .
otherwise :
Goland
2020.2.3 Run directly on
Meeting panic
:
2020/11/07 20:23:47 http: panic serving 127.0.0.1:64518: runtime error: invalid memory address or nil pointer dereference
goroutine 6 [running]:
net/http.(*conn).serve.func1(0xc00005d180)
D:/Go/src/net/http/server.go:1801 +0x147
panic(0x869260, 0xaf78f0)
D:/Go/src/runtime/panic.go:975 +0x3e9
...
D:/Go/src/net/http/server.go:2969 +0x36d
Conclusion :
My guess is ,Goland
Their own bug
.