We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ERRO] http: panic serving [::1]:51019: exception recovered: implement not found for interface IView, forgot register? goroutine 41 [running]: net/http.(conn).serve.func1() C:/Program Files/Go/src/net/http/server.go:1825 +0xbf panic({0xc71120, 0xc002dfd4a0}) C:/Program Files/Go/src/runtime/panic.go:844 +0x258 github.com/gogf/gf/v2/net/ghttp.niceCallFunc.func1() C:/Users//go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_func.go:48 +0x2c8 panic({0xbca7e0, 0xf8d390}) C:/Program Files/Go/src/runtime/panic.go:838 +0x207 focus-single/internal/service.View(...) C:/Users//GolandProjects/focus-single/internal/service/view.go:28 focus-single/internal/cmd.glob..func1.5(0x7) C:/Users//GolandProjects/focus-single/internal/cmd/cmd.go:67 +0xba github.com/gogf/gf/v2/net/ghttp.(Server).ServeHTTP.func2() C:/Users//go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server_handler.go:161 +0x24 github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0xc0003d4000?) C:/Users/*/go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_func.go:55 +0x3e github.com/gogf/gf/v2/net/ghttp.(Server).ServeHTTP(0xc0003d4000, {0xf93490?, 0xc0000ce0e0}, 0xc00029a300) C:/Users//go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server_handler.go:160 +0x55e net/http.HandlerFunc.ServeHTTP(0x0?, {0xf93490?, 0xc0000ce0e0?}, 0xc000058c00?) C:/Program Files/Go/src/net/http/server.go:2084 +0x2f net/http.serverHandler.ServeHTTP({0xc002dd9fb0?}, {0xf93490, 0xc0000ce0e0}, 0xc00029a300) C:/Program Files/Go/src/net/http/server.go:2916 +0x43b net/http.(*conn).serve(0xc002e400a0, {0xf939b8, 0xc00068e1e0}) C:/Program Files/Go/src/net/http/server.go:1966 +0x5d7 created by net/http.(*Server).Serve C:/Program Files/Go/src/net/http/server.go:3071 +0x4db Stack:
The text was updated successfully, but these errors were encountered:
logic/view/view.go 少了这段代码。
func init() { service.RegisterView(New()) }
main.go 也要引入 _ "github.com/gogf/gf/contrib/drivers/mysql/v2"
Sorry, something went wrong.
确实是view 没有注册的原因,翻了半天都没翻出来
No branches or pull requests
[ERRO] http: panic serving [::1]:51019: exception recovered: implement not found for interface IView, forgot register?
goroutine 41 [running]:
net/http.(conn).serve.func1()
C:/Program Files/Go/src/net/http/server.go:1825 +0xbf
panic({0xc71120, 0xc002dfd4a0})
C:/Program Files/Go/src/runtime/panic.go:844 +0x258
github.com/gogf/gf/v2/net/ghttp.niceCallFunc.func1()
C:/Users//go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_func.go:48 +0x2c8
panic({0xbca7e0, 0xf8d390})
C:/Program Files/Go/src/runtime/panic.go:838 +0x207
focus-single/internal/service.View(...)
C:/Users//GolandProjects/focus-single/internal/service/view.go:28
focus-single/internal/cmd.glob..func1.5(0x7)
C:/Users//GolandProjects/focus-single/internal/cmd/cmd.go:67 +0xba
github.com/gogf/gf/v2/net/ghttp.(Server).ServeHTTP.func2()
C:/Users//go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server_handler.go:161 +0x24
github.com/gogf/gf/v2/net/ghttp.niceCallFunc(0xc0003d4000?)
C:/Users/*/go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_func.go:55 +0x3e
github.com/gogf/gf/v2/net/ghttp.(Server).ServeHTTP(0xc0003d4000, {0xf93490?, 0xc0000ce0e0}, 0xc00029a300)
C:/Users//go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server_handler.go:160 +0x55e
net/http.HandlerFunc.ServeHTTP(0x0?, {0xf93490?, 0xc0000ce0e0?}, 0xc000058c00?)
C:/Program Files/Go/src/net/http/server.go:2084 +0x2f
net/http.serverHandler.ServeHTTP({0xc002dd9fb0?}, {0xf93490, 0xc0000ce0e0}, 0xc00029a300)
C:/Program Files/Go/src/net/http/server.go:2916 +0x43b
net/http.(*conn).serve(0xc002e400a0, {0xf939b8, 0xc00068e1e0})
C:/Program Files/Go/src/net/http/server.go:1966 +0x5d7
created by net/http.(*Server).Serve
C:/Program Files/Go/src/net/http/server.go:3071 +0x4db
Stack:
C:/Users/****/go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_func.go:48
C:/Users/****/GolandProjects/focus-single/internal/service/view.go:28
C:/Users/****/GolandProjects/focus-single/internal/cmd/cmd.go:67
C:/Users/***/go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server_handler.go:161
C:/Users/****/go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_func.go:55
C:/Users/***/go/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server_handler.go:160
The text was updated successfully, but these errors were encountered: