Skip to content

Commit

Permalink
Fixed: buffalo show custom page bug
Browse files Browse the repository at this point in the history
  • Loading branch information
cg33 committed Oct 10, 2019
1 parent b779298 commit 8e1838b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
3 changes: 1 addition & 2 deletions adapter/buffalo/buffalo.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import (
"github.com/chenhg5/go-admin/template"
"github.com/chenhg5/go-admin/template/types"
"github.com/gobuffalo/buffalo"
"github.com/gobuffalo/buffalo/render"
template2 "html/template"
"net/http"
neturl "net/url"
Expand Down Expand Up @@ -173,5 +172,5 @@ func (bu *Buffalo) Content(contextInterface interface{}, c types.GetPanel) {
if err != nil {
logger.Error("Buffalo Content", err)
}
_ = ctx.Render(http.StatusOK, render.String(buf.String()))
_, _ = ctx.Response().Write(buf.Bytes())
}
20 changes: 2 additions & 18 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,18 @@ go 1.12

require (
github.com/360EntSecGroup-Skylar/excelize v1.4.1
github.com/ajg/form v1.5.1 // indirect
github.com/astaxie/beego v1.12.0
github.com/denisenkom/go-mssqldb v0.0.0-20191001013358-cfbb681360f0
github.com/gavv/httpexpect v2.0.0+incompatible
github.com/gin-gonic/gin v1.4.0
github.com/go-sql-driver/mysql v1.4.1
github.com/gobuffalo/buffalo v0.14.10
github.com/gorilla/websocket v1.4.1 // indirect
github.com/imkira/go-interpol v1.1.0 // indirect
github.com/kr/pretty v0.1.0 // indirect
github.com/lib/pq v1.2.0
github.com/magiconair/properties v1.8.1
github.com/mattn/go-colorable v0.1.4 // indirect
github.com/mattn/go-sqlite3 v1.11.0
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
github.com/moul/http2curl v1.0.0 // indirect
github.com/satori/go.uuid v1.2.0
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
github.com/sirupsen/logrus v1.4.2
github.com/spf13/afero v1.2.1 // indirect
github.com/valyala/fasthttp v1.5.0 // indirect
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
github.com/xeipuuv/gojsonschema v1.1.0 // indirect
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
github.com/yudai/gojsondiff v1.0.0 // indirect
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc
golang.org/x/text v0.3.2
google.golang.org/appengine v1.6.5 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
)
)

0 comments on commit 8e1838b

Please sign in to comment.