Skip to content

Commit 8e1838b

Browse files
author
cg33
committed
Fixed: buffalo show custom page bug
1 parent b779298 commit 8e1838b

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

adapter/buffalo/buffalo.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import (
1919
"github.com/chenhg5/go-admin/template"
2020
"github.com/chenhg5/go-admin/template/types"
2121
"github.com/gobuffalo/buffalo"
22-
"github.com/gobuffalo/buffalo/render"
2322
template2 "html/template"
2423
"net/http"
2524
neturl "net/url"
@@ -173,5 +172,5 @@ func (bu *Buffalo) Content(contextInterface interface{}, c types.GetPanel) {
173172
if err != nil {
174173
logger.Error("Buffalo Content", err)
175174
}
176-
_ = ctx.Render(http.StatusOK, render.String(buf.String()))
175+
_, _ = ctx.Response().Write(buf.Bytes())
177176
}

go.mod

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,18 @@ go 1.12
44

55
require (
66
github.com/360EntSecGroup-Skylar/excelize v1.4.1
7-
github.com/ajg/form v1.5.1 // indirect
8-
github.com/astaxie/beego v1.12.0
97
github.com/denisenkom/go-mssqldb v0.0.0-20191001013358-cfbb681360f0
10-
github.com/gavv/httpexpect v2.0.0+incompatible
11-
github.com/gin-gonic/gin v1.4.0
128
github.com/go-sql-driver/mysql v1.4.1
13-
github.com/gobuffalo/buffalo v0.14.10
14-
github.com/gorilla/websocket v1.4.1 // indirect
15-
github.com/imkira/go-interpol v1.1.0 // indirect
9+
github.com/kr/pretty v0.1.0 // indirect
1610
github.com/lib/pq v1.2.0
1711
github.com/magiconair/properties v1.8.1
1812
github.com/mattn/go-colorable v0.1.4 // indirect
1913
github.com/mattn/go-sqlite3 v1.11.0
2014
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b
21-
github.com/moul/http2curl v1.0.0 // indirect
2215
github.com/satori/go.uuid v1.2.0
23-
github.com/shiena/ansicolor v0.0.0-20151119151921-a422bbe96644 // indirect
2416
github.com/sirupsen/logrus v1.4.2
25-
github.com/spf13/afero v1.2.1 // indirect
26-
github.com/valyala/fasthttp v1.5.0 // indirect
27-
github.com/xeipuuv/gojsonpointer v0.0.0-20190905194746-02993c407bfb // indirect
28-
github.com/xeipuuv/gojsonreference v0.0.0-20180127040603-bd5ef7bd5415 // indirect
29-
github.com/xeipuuv/gojsonschema v1.1.0 // indirect
30-
github.com/yalp/jsonpath v0.0.0-20180802001716-5cc68e5049a0 // indirect
31-
github.com/yudai/gojsondiff v1.0.0 // indirect
32-
github.com/yudai/golcs v0.0.0-20170316035057-ecda9a501e82 // indirect
3317
golang.org/x/crypto v0.0.0-20191002192127-34f69633bfdc
3418
golang.org/x/text v0.3.2
3519
google.golang.org/appengine v1.6.5 // indirect
3620
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
37-
)
21+
)

0 commit comments

Comments
 (0)