API server listening at: 127.0.0.1:36407
2020/06/15 12:51:59 http: panic serving [::1]:50959: runtime error: invalid memory address or nil pointer dereference
goroutine 55 [running]:
net/http.(*conn).serve.func1(0xc00020c280)
c:/go/src/net/http/server.go:1772 +0x150
panic(0x89bea0, 0xbde680)
c:/go/src/runtime/panic.go:973 +0x3dc
html/template.(*Template).escape(0x0, 0x0, 0x0)
c:/go/src/html/template/template.go:95 +0x4c
html/template.(*Template).Execute(0x0, 0x971000, 0xc00023a0e0, 0x894100, 0x0, 0x0, 0x0)
c:/go/src/html/template/template.go:119 +0x41
main.viewHandler(0x976320, 0xc00023a0e0, 0xc00021a600)
d:/GoExam/main.go:33 +0x1fd
net/http.HandlerFunc.ServeHTTP(0x91bb70, 0x976320, 0xc00023a0e0, 0xc00021a600)
c:/go/src/net/http/server.go:2012 +0x4b
net/http.(*ServeMux).ServeHTTP(0xbee2c0, 0x976320, 0xc00023a0e0, 0xc00021a600)
c:/go/src/net/http/server.go:2387 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00010a000, 0x976320, 0xc00023a0e0, 0xc00021a600)
c:/go/src/net/http/server.go:2807 +0x216
net/http.(*conn).serve(0xc00020c280, 0x9768a0, 0xc000212400)
c:/go/src/net/http/server.go:1895 +0x171d
created by net/http.(*Server).Serve
c:/go/src/net/http/server.go:2933 +0x938