build fail
github.com/olekukonko/tablewriter
The dependency package has been updated, resulting in a packaging error
github.com/gogf/gf/v2/net/ghttp
/GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)
me too
github.com/olekukonko/tablewriter
The dependency package has been updated, resulting in a packaging error
github.com/gogf/gf/v2/net/ghttp
/GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)
@dongdio You need update go.mod file,find this line github.com/olekukonko/tablewriter v1.0.3 // indirect Modify it to v0.0.5 After saving, you should be able to run it again
@mrfuwei Ok. I'll test it. Thank you.
me too
C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) C:\Users\82188\go\pkg\mod\github.com\gogf\gf\[email protected]\net\ghttp\ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)
me too
me too
ζδΉζ―
Bot detected the issue body's language is not English, translate it automatically. π―ππ»π§βπ€βπ§π«π§πΏβπ€βπ§π»π©πΎβπ€βπ¨πΏπ¬πΏ
Me too
δΈΊδ»δΉθ¦η¨δ½ηζ¬ε’?εΊθ―₯ζ―ζι«ηζ¬tablewriterηapi.
github.com/olekukonko/tablewriter The dependency package has been updated, resulting in a packaging error
github.com/gogf/gf/v2/net/ghttp
/GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:300:9: table.SetHeader undefined (type *tablewriter.Table has no field or method SetHeader) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:301:9: table.SetRowLine undefined (type *tablewriter.Table has no field or method SetRowLine) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:302:9: table.SetBorder undefined (type *tablewriter.Table has no field or method SetBorder) /GOPATH/pkg/mod/github.com/gogf/gf/[email protected]/net/ghttp/ghttp_server.go:303:9: table.SetCenterSeparator undefined (type *tablewriter.Table has no field or method SetCenterSeparator)
@dongdio You need update go.mod file,find this line github.com/olekukonko/tablewriter v1.0.3 // indirect Modify it to v0.0.5 After saving, you should be able to run it again
It works, Thanks!
But why?
ζζζ‘£ζδ½οΌζθ η΄ζ₯ζ΄ζ°ε°2.9.3 https://goframe.org/docs/faq#3%E5%8D%87%E7%BA%A7%E5%BC%95%E8%B5%B7%E5%85%BC%E5%AE%B9%E6%80%A7%E6%8A%A5%E9%94%99-netghttpghttp_servergo3009-tablesetheader-undefined-type-tablewritertable-has-no-field-or-method-setheader