Skip to content

Commit

Permalink
Correct unhandled error
Browse files Browse the repository at this point in the history
  • Loading branch information
realPy committed Oct 31, 2020
1 parent e11e6bc commit 289b154
Show file tree
Hide file tree
Showing 4 changed files with 142 additions and 3 deletions.
2 changes: 1 addition & 1 deletion adapter/gofiber/gofiber.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func (gof *Gofiber) SetContext(contextInterface interface{}) adapter.WebFrameWor

// Redirect implements the method Adapter.Redirect.
func (gof *Gofiber) Redirect() {
gof.ctx.Redirect(config.Url(config.GetLoginUrl()), http.StatusFound)
_=gof.ctx.Redirect(config.Url(config.GetLoginUrl()), http.StatusFound)
}

// SetContentType implements the method Adapter.SetContentType.
Expand Down
2 changes: 1 addition & 1 deletion examples/gofiber/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func main() {

eng.HTML("GET", "/admin", datamodel.GetContent)

app.Listen(":8897")
_=app.Listen(":8897")

quit := make(chan os.Signal, 1)
signal.Notify(quit, os.Interrupt)
Expand Down
6 changes: 5 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ go 1.13
require (
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/GoAdminGroup/html v0.0.1
github.com/GoAdminGroup/themes v0.0.40
github.com/NebulousLabs/fastrand v0.0.0-20181203155948-6fb6489aac4e
github.com/denisenkom/go-mssqldb v0.0.0-20200206145737-bbfc9a55622e
github.com/gin-gonic/gin v1.6.3
github.com/go-sql-driver/mysql v1.5.0
github.com/gobuffalo/packr/v2 v2.8.0 // indirect
github.com/gofiber/fiber/v2 v2.1.2
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
github.com/lib/pq v1.3.0
github.com/magiconair/properties v1.8.1
Expand All @@ -19,9 +23,9 @@ require (
github.com/sirupsen/logrus v1.4.2
github.com/stretchr/objx v0.2.0 // indirect
github.com/stretchr/testify v1.5.1
github.com/valyala/fasthttp v1.16.0
go.uber.org/zap v1.14.1
golang.org/x/crypto v0.0.0-20200221231518-2aa609cf4a9d
golang.org/x/sys v0.0.0-20200219091948-cb0a6d8edb6c // indirect
golang.org/x/text v0.3.2
google.golang.org/appengine v1.6.5 // indirect
gopkg.in/ini.v1 v1.51.0
Expand Down
Loading

0 comments on commit 289b154

Please sign in to comment.