goweb icon indicating copy to clipboard operation
goweb copied to clipboard

go run main.go报错

Open kunkun1993 opened this issue 5 years ago • 1 comments

app.StaticServe undefined (type *iris.Application has no field or method StaticServe) 为啥我的main.go 11行调用的iris StaticServe没有这个方法

kunkun1993 avatar Dec 05 '19 10:12 kunkun1993

找到原因了 我的iris包里面没有StaticServe这个方法 改为HandleDir就行了

kunkun1993 avatar Dec 06 '19 02:12 kunkun1993