Skip to content

Commit b73b1b9

Browse files
committed
chore: update bindata tool
1 parent c6f4cc5 commit b73b1b9

File tree

5 files changed

+36
-44
lines changed

5 files changed

+36
-44
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ proto:
6868
asset: clear static/js static/css static/html
6969
bindata \
7070
-pkg $(PKG)/route/asset \
71-
-resource static/
71+
-src static/
7272

7373
clear:
7474
rm -rf static
@@ -94,7 +94,7 @@ js/node_modules/xterm/dist/xterm.css:
9494
cd js && \
9595
npm install
9696

97-
.PHONY: js/dist/gotty-bundle.js
97+
# .PHONY: js/dist/gotty-bundle.js
9898
js/dist/gotty-bundle.js: js/node_modules/webpack
9999
cd js && \
100100
`npm bin`/webpack

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ require (
99
github.com/docker/go-connections v0.4.0 // indirect
1010
github.com/docker/go-units v0.3.3 // indirect
1111
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c // indirect
12-
github.com/elazarl/go-bindata-assetfs v1.0.0
1312
github.com/elazarl/goproxy v0.0.0-20181111060418-2ce16c963a8a
1413
github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3 // indirect
1514
github.com/gin-gonic/gin v1.3.0
@@ -31,8 +30,7 @@ require (
3130
github.com/sirupsen/logrus v1.4.0
3231
github.com/spf13/pflag v1.0.3 // indirect
3332
github.com/ugorji/go/codec v0.0.0-20190320090025-2dc34c0b8780 // indirect
34-
github.com/wrfly/bindata v0.0.0-20190403163452-84af32a30f60 // indirect
35-
github.com/wrfly/ecp v0.1.0
33+
github.com/wrfly/ecp v0.1.1-0.20190725160759-97269b9e95f0
3634
github.com/yudai/gotty v2.0.0-alpha.3+incompatible
3735
golang.org/x/net v0.0.0-20190326090315-15845e8f865b
3836
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect

go.sum

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ github.com/docker/go-units v0.3.3 h1:Xk8S3Xj5sLGlG5g67hJmYMmUgXv5N4PhkjJHHqrwnTk
1515
github.com/docker/go-units v0.3.3/go.mod h1:fgPhTUdO+D/Jk86RDLlptpiXQzgHJF7gydDDbaIK4Dk=
1616
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c h1:ZfSZ3P3BedhKGUhzj7BQlPSU4OvT6tfOKe3DVHzOA7s=
1717
github.com/docker/spdystream v0.0.0-20181023171402-6480d4af844c/go.mod h1:Qh8CwZgvJUkLughtfhJv5dyTYa91l1fOUCrgjqmcifM=
18-
github.com/elazarl/go-bindata-assetfs v1.0.0 h1:G/bYguwHIzWq9ZoyUQqrjTmJbbYn3j3CKKpKinvZLFk=
19-
github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4=
2018
github.com/elazarl/goproxy v0.0.0-20181111060418-2ce16c963a8a h1:A4wNiqeKqU56ZhtnzJCTyPZ1+cyu8jKtIchQ3TtxHgw=
2119
github.com/elazarl/goproxy v0.0.0-20181111060418-2ce16c963a8a/go.mod h1:/Zj4wYkgs4iZTTu3o/KG3Itv/qCCa8VVMlb3i9OVuzc=
2220
github.com/gin-contrib/sse v0.0.0-20190301062529-5545eab6dad3 h1:t8FVkw33L+wilf2QiWkw0UV77qRpcH/JHPKGpKa2E8g=
@@ -74,12 +72,8 @@ github.com/ugorji/go v1.1.2 h1:JON3E2/GPW2iDNGoSAusl1KDf5TRQ8k8q7Tp097pZGs=
7472
github.com/ugorji/go v1.1.2/go.mod h1:hnLbHMwcvSihnDhEfx2/BzKp2xb0Y+ErdfYcrs9tkJQ=
7573
github.com/ugorji/go/codec v0.0.0-20190320090025-2dc34c0b8780 h1:vG/gY/PxA3v3l04qxe3tDjXyu3bozii8ulSlIPOYKhI=
7674
github.com/ugorji/go/codec v0.0.0-20190320090025-2dc34c0b8780/go.mod h1:iT03XoTwV7xq/+UGwKO3UbC1nNNlopQiY61beSdrtOA=
77-
github.com/wrfly/bindata v0.0.0-20190329131907-372088142650 h1:RcrlTAimjpy8WqvYEJmRr3weVCzT8VkHXCqQQgQ8rdo=
78-
github.com/wrfly/bindata v0.0.0-20190329131907-372088142650/go.mod h1:PJWDAiT81Z8k5Wx4c1hl3aKFIxokgycbdNBlMtF/yaA=
79-
github.com/wrfly/bindata v0.0.0-20190403163452-84af32a30f60 h1:iEapbDpEpM74EUNs2VHchs0BmJwT0C+VRbvN+tz5nhQ=
80-
github.com/wrfly/bindata v0.0.0-20190403163452-84af32a30f60/go.mod h1:PJWDAiT81Z8k5Wx4c1hl3aKFIxokgycbdNBlMtF/yaA=
81-
github.com/wrfly/ecp v0.1.0 h1:btwZO5LGlM5SNykaUXGkJIjwckpjPU2MjFatehSCmY8=
82-
github.com/wrfly/ecp v0.1.0/go.mod h1:cmmFTD+MLlrDa3/EO3gjeKLKUhHiYP3cgaaJamIS1NU=
75+
github.com/wrfly/ecp v0.1.1-0.20190725160759-97269b9e95f0 h1:Zy3Chk4CvwAqJ6YgQym6hJQEk4JE7iPbHRfxkru6Zn0=
76+
github.com/wrfly/ecp v0.1.1-0.20190725160759-97269b9e95f0/go.mod h1:cmmFTD+MLlrDa3/EO3gjeKLKUhHiYP3cgaaJamIS1NU=
8377
github.com/yudai/gotty v2.0.0-alpha.3+incompatible h1:eUFSuV4B2g+Rj+PS3HxhvOGEu2klWRzsl/7z7T/NUJQ=
8478
github.com/yudai/gotty v2.0.0-alpha.3+incompatible/go.mod h1:QBg0hL6VTVdqQk0qoBYk631EHLRH+XtR4wtbVi64UJ4=
8579
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793 h1:u+LnwYTOOW7Ukr/fppxEb1Nwz0AtPflrblfvUudpo+I=

route/asset/asset.go

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
/*
2-
CODE GENERATED BY "github.com/wrfly/bindata"
3-
@2019-12-15T03:01:37+08:00
2+
CODE GENERATED BY "github.com/wrfly/bindata"
43

54
Files:
65
/
@@ -34,8 +33,8 @@ var _file_0 = &file{
3433
name: "/",
3534
isDir: true,
3635
size: 4096,
37-
mode: os.FileMode(2147484141),
38-
mTime: time.Unix(1576350097, 0),
36+
mode: os.FileMode(0),
37+
mTime: time.Unix(-62135596800, 0),
3938
cType: "",
4039
},
4140
path: "/",
@@ -52,8 +51,8 @@ var _file_1 = &file{
5251
name: "css",
5352
isDir: true,
5453
size: 4096,
55-
mode: os.FileMode(2147484141),
56-
mTime: time.Unix(1576350097, 0),
54+
mode: os.FileMode(0),
55+
mTime: time.Unix(-62135596800, 0),
5756
cType: "",
5857
},
5958
path: "/css",
@@ -77,8 +76,8 @@ var _file_2 = &file{
7776
name: "index.css",
7877
isDir: false,
7978
size: 116,
80-
mode: os.FileMode(420),
81-
mTime: time.Unix(1576350097, 0),
79+
mode: os.FileMode(0),
80+
mTime: time.Unix(-62135596800, 0),
8281
cType: "text/css; charset=utf-8",
8382
},
8483
path: "/css/index.css",
@@ -158,9 +157,9 @@ var _file_3 = &file{
158157
fileInfo: &fileInfo{
159158
name: "list.css",
160159
isDir: false,
161-
size: 2910,
162-
mode: os.FileMode(420),
163-
mTime: time.Unix(1576350097, 0),
160+
size: 2961,
161+
mode: os.FileMode(0),
162+
mTime: time.Unix(-62135596800, 0),
164163
cType: "text/css; charset=utf-8",
165164
},
166165
path: "/css/list.css",
@@ -295,8 +294,8 @@ var _file_4 = &file{
295294
name: "xterm.css",
296295
isDir: false,
297296
size: 4074,
298-
mode: os.FileMode(420),
299-
mTime: time.Unix(1576350097, 0),
297+
mode: os.FileMode(0),
298+
mTime: time.Unix(-62135596800, 0),
300299
cType: "text/css; charset=utf-8",
301300
},
302301
path: "/css/xterm.css",
@@ -333,8 +332,8 @@ var _file_5 = &file{
333332
name: "xterm_customize.css",
334333
isDir: false,
335334
size: 550,
336-
mode: os.FileMode(420),
337-
mTime: time.Unix(1576350097, 0),
335+
mode: os.FileMode(0),
336+
mTime: time.Unix(-62135596800, 0),
338337
cType: "text/css; charset=utf-8",
339338
},
340339
path: "/css/xterm_customize.css",
@@ -410,8 +409,8 @@ var _file_6 = &file{
410409
name: "favicon.png",
411410
isDir: false,
412411
size: 863,
413-
mode: os.FileMode(420),
414-
mTime: time.Unix(1576350097, 0),
412+
mode: os.FileMode(0),
413+
mTime: time.Unix(-62135596800, 0),
415414
cType: "image/png",
416415
},
417416
path: "/favicon.png",
@@ -443,8 +442,8 @@ var _file_7 = &file{
443442
name: "index.html",
444443
isDir: false,
445444
size: 486,
446-
mode: os.FileMode(420),
447-
mTime: time.Unix(1576350097, 0),
445+
mode: os.FileMode(0),
446+
mTime: time.Unix(-62135596800, 0),
448447
cType: "text/html; charset=utf-8",
449448
},
450449
path: "/index.html",
@@ -461,8 +460,8 @@ var _file_8 = &file{
461460
name: "js",
462461
isDir: true,
463462
size: 4096,
464-
mode: os.FileMode(2147484141),
465-
mTime: time.Unix(1576350097, 0),
463+
mode: os.FileMode(0),
464+
mTime: time.Unix(-62135596800, 0),
466465
cType: "",
467466
},
468467
path: "/js",
@@ -697,8 +696,8 @@ var _file_9 = &file{
697696
name: "clipboard.min.js",
698697
isDir: false,
699698
size: 10662,
700-
mode: os.FileMode(420),
701-
mTime: time.Unix(1576350097, 0),
699+
mode: os.FileMode(0),
700+
mTime: time.Unix(-62135596800, 0),
702701
cType: "application/javascript",
703702
},
704703
path: "/js/clipboard.min.js",
@@ -744,8 +743,8 @@ var _file_10 = &file{
744743
name: "control.js",
745744
isDir: false,
746745
size: 1010,
747-
mode: os.FileMode(420),
748-
mTime: time.Unix(1576350097, 0),
746+
mode: os.FileMode(0),
747+
mTime: time.Unix(-62135596800, 0),
749748
cType: "application/javascript",
750749
},
751750
path: "/js/control.js",
@@ -9570,8 +9569,8 @@ var _file_11 = &file{
95709569
name: "gotty-bundle.js",
95719570
isDir: false,
95729571
size: 504210,
9573-
mode: os.FileMode(420),
9574-
mTime: time.Unix(1576350097, 0),
9572+
mode: os.FileMode(0),
9573+
mTime: time.Unix(-62135596800, 0),
95759574
cType: "application/javascript",
95769575
},
95779576
path: "/js/gotty-bundle.js",
@@ -9655,9 +9654,9 @@ var _file_12 = &file{
96559654
fileInfo: &fileInfo{
96569655
name: "list.html",
96579656
isDir: false,
9658-
size: 3400,
9659-
mode: os.FileMode(420),
9660-
mTime: time.Unix(1576350097, 0),
9657+
size: 3288,
9658+
mode: os.FileMode(0),
9659+
mTime: time.Unix(-62135596800, 0),
96619660
cType: "text/html; charset=utf-8",
96629661
},
96639662
path: "/list.html",

route/asset/bindata.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func (r *fileReader) Seek(offset int64, whence int) (int64, error) {
104104
return abs, nil
105105
}
106106

107-
func (f *fileReader) Close() error {
107+
func (r *fileReader) Close() error {
108108
return nil
109109
}
110110

@@ -251,6 +251,7 @@ func unCompress(in []byte) []byte {
251251
}
252252

253253
var (
254+
// Root asset interface
254255
Root Assets
255256
fs []*file
256257
root = &data{}

0 commit comments

Comments
 (0)