Skip to content

Commit 581f6b2

Browse files
committed
Get rid of packr, update all dependencies
1 parent 876e195 commit 581f6b2

546 files changed

Lines changed: 64281 additions & 129432 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ jobs:
2121
with:
2222
go-version: '1.25.3'
2323

24-
- name: Install packr2
25-
run: go get github.com/gobuffalo/packr/v2/packr2@latest
26-
2724
- name: Build frontend
2825
run: |
2926
cd webmanager

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/dist
22
.DS_Store
3+
internal/assets/browser

Makefile

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# All
2-
all: packr client server packr-clean
2+
all: copy-assets client server cleanup-assets
3+
4+
copy-assets:
5+
cp -r webmanager/dist/webmanager/browser internal/assets/
6+
7+
cleanup-assets:
8+
rm -rf internal/assets/browser
39

410
# Client build commands
511
client-linux-i386:
@@ -33,19 +39,6 @@ server-windows-amd64:
3339
server-darwin-amd64:
3440
GOOS=darwin GOARCH=amd64 ./build-scripts/build.sh server
3541

36-
# Packr
37-
packr-client:
38-
cd cmd/engarde-client && packr2
39-
packr-server:
40-
cd cmd/engarde-server && packr2
41-
packr-clean-client:
42-
cd cmd/engarde-client && packr2 clean
43-
packr-clean-server:
44-
cd cmd/engarde-server && packr2 clean
45-
46-
packr: packr-client packr-server
47-
packr-clean: packr-clean-client packr-clean-server
48-
4942
# Platform-specific builds
5043
linux-i386: client-linux-i386 server-linux-i386
5144
linux-amd64: client-linux-amd64 server-linux-amd64

cmd/engarde-client/webserver.go

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ package main
33
import (
44
"crypto/subtle"
55
"encoding/json"
6-
"io/ioutil"
6+
"io"
7+
"io/fs"
78
"net"
89
"net/http"
910
"time"
1011

11-
"github.com/gobuffalo/packr/v2"
12+
"github.com/porech/engarde/v2/internal/assets"
1213
log "github.com/sirupsen/logrus"
1314
)
1415

@@ -36,21 +37,26 @@ func webBasicAuth(handler http.HandlerFunc, username, password, realm string) ht
3637
}
3738
}
3839

39-
func webHandleFileServer(box *packr.Box, prefix string) http.HandlerFunc {
40-
fs := http.FileServer(box)
41-
realHandler := fs.ServeHTTP
40+
func webHandleFileServer(webFS fs.FS) http.HandlerFunc {
41+
fs := http.FileServer(http.FS(webFS))
4242
return func(w http.ResponseWriter, req *http.Request) {
4343
if req.URL.Path == "/" {
44-
index, err := box.Find("index.html")
44+
index, err := webFS.Open("index.html")
45+
if err != nil {
46+
http.NotFound(w, req)
47+
return
48+
}
49+
defer index.Close()
50+
content, err := io.ReadAll(index)
4551
if err != nil {
4652
http.NotFound(w, req)
4753
return
4854
}
4955
w.WriteHeader(200)
50-
w.Write(index)
56+
w.Write(content)
5157
return
5258
}
53-
realHandler(w, req)
59+
fs.ServeHTTP(w, req)
5460
}
5561
}
5662

@@ -132,7 +138,7 @@ func webResetExclusions(w http.ResponseWriter, r *http.Request) {
132138
}
133139

134140
func webSwapExclusion(w http.ResponseWriter, r *http.Request) {
135-
body, err := ioutil.ReadAll(r.Body)
141+
body, err := io.ReadAll(r.Body)
136142
if err != nil {
137143
w.WriteHeader(500)
138144
w.Write([]byte("Internal server error"))
@@ -161,7 +167,7 @@ func webSwapExclusion(w http.ResponseWriter, r *http.Request) {
161167
}
162168

163169
func webInclude(w http.ResponseWriter, r *http.Request) {
164-
body, err := ioutil.ReadAll(r.Body)
170+
body, err := io.ReadAll(r.Body)
165171
if err != nil {
166172
w.WriteHeader(500)
167173
w.Write([]byte("Internal server error"))
@@ -197,7 +203,7 @@ func webInclude(w http.ResponseWriter, r *http.Request) {
197203
}
198204

199205
func webExclude(w http.ResponseWriter, r *http.Request) {
200-
body, err := ioutil.ReadAll(r.Body)
206+
body, err := io.ReadAll(r.Body)
201207
if err != nil {
202208
w.WriteHeader(500)
203209
w.Write([]byte("Internal server error"))
@@ -235,8 +241,8 @@ func webExclude(w http.ResponseWriter, r *http.Request) {
235241
func webserver(listenAddr, username, password string) {
236242
for {
237243
realm := "engarde"
238-
box := packr.New("webmanager", "../../webmanager/dist/webmanager/browser")
239-
http.HandleFunc("/", webBasicAuth(webHandleFileServer(box, "/"), username, password, realm))
244+
webFS := assets.GetWebFS()
245+
http.HandleFunc("/", webBasicAuth(webHandleFileServer(webFS), username, password, realm))
240246
http.HandleFunc("/api/v1/get-list", NoCache(webBasicAuth(webGetList, username, password, realm)))
241247
http.HandleFunc("/api/v1/include", NoCache(webBasicAuth(webInclude, username, password, realm)))
242248
http.HandleFunc("/api/v1/exclude", NoCache(webBasicAuth(webExclude, username, password, realm)))

cmd/engarde-server/webserver.go

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,12 @@ package main
33
import (
44
"crypto/subtle"
55
"encoding/json"
6+
"io"
7+
"io/fs"
68
"net/http"
79
"time"
810

9-
"github.com/gobuffalo/packr/v2"
11+
"github.com/porech/engarde/v2/internal/assets"
1012
log "github.com/sirupsen/logrus"
1113
)
1214

@@ -31,20 +33,26 @@ func webBasicAuth(handler http.HandlerFunc, username, password, realm string) ht
3133
}
3234
}
3335

34-
func webHandleFileServer(box *packr.Box, prefix string) http.HandlerFunc {
35-
fs := http.FileServer(box)
36-
realHandler := fs.ServeHTTP
36+
func webHandleFileServer(webFS fs.FS) http.HandlerFunc {
37+
fs := http.FileServer(http.FS(webFS))
3738
return func(w http.ResponseWriter, req *http.Request) {
3839
if req.URL.Path == "/" {
39-
index, err := box.Find("index.html")
40+
index, err := webFS.Open("index.html")
4041
if err != nil {
4142
http.NotFound(w, req)
43+
return
44+
}
45+
defer index.Close()
46+
content, err := io.ReadAll(index)
47+
if err != nil {
48+
http.NotFound(w, req)
49+
return
4250
}
4351
w.WriteHeader(200)
44-
w.Write(index)
52+
w.Write(content)
4553
return
4654
}
47-
realHandler(w, req)
55+
fs.ServeHTTP(w, req)
4856
}
4957
}
5058

@@ -83,8 +91,8 @@ func webGetList(w http.ResponseWriter, r *http.Request) {
8391
func webserver(listenAddr, username, password string) {
8492
for {
8593
realm := "engarde"
86-
box := packr.New("webmanager", "../../webmanager/dist/webmanager/browser")
87-
http.HandleFunc("/", webBasicAuth(webHandleFileServer(box, "/"), username, password, realm))
94+
webFS := assets.GetWebFS()
95+
http.HandleFunc("/", webBasicAuth(webHandleFileServer(webFS), username, password, realm))
8896
http.HandleFunc("/api/v1/get-list", NoCache(webBasicAuth(webGetList, username, password, realm)))
8997
log.Info("Management webserver listening on " + listenAddr)
9098
if err := http.ListenAndServe(listenAddr, nil); err != nil {

go.mod

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
module github.com/porech/engarde/v2
22

3-
go 1.13
3+
go 1.16
44

55
require (
6-
github.com/gobuffalo/packr/v2 v2.7.1
7-
github.com/rogpeppe/go-internal v1.5.0 // indirect
8-
github.com/sirupsen/logrus v1.4.2
9-
golang.org/x/crypto v0.0.0-20191108234033-bd318be0434a // indirect
10-
golang.org/x/sys v0.0.0-20191105231009-c1f44814a5cd // indirect
11-
gopkg.in/yaml.v2 v2.2.2
6+
github.com/sirupsen/logrus v1.9.3
7+
gopkg.in/yaml.v2 v2.4.0
128
)

go.sum

Lines changed: 11 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,18 @@
1-
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
2-
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
3-
github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
4-
github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=
5-
github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
6-
github.com/cpuguy83/go-md2man v1.0.10/go.mod h1:SmD6nW6nTyfqj6ABTjUi3V3JVMnlJmwcJI5acqYI6dE=
71
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
82
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
93
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
10-
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
11-
github.com/gobuffalo/envy v1.7.0/go.mod h1:n7DRkBerg/aorDM8kbduw5dN3oXGswK5liaSCx4T5NI=
12-
github.com/gobuffalo/envy v1.7.1 h1:OQl5ys5MBea7OGCdvPbBJWRgnhC/fGona6QKfvFeau8=
13-
github.com/gobuffalo/envy v1.7.1/go.mod h1:FurDp9+EDPE4aIUS3ZLyD+7/9fpx7YRt/ukY6jIHf0w=
14-
github.com/gobuffalo/logger v1.0.1 h1:ZEgyRGgAm4ZAhAO45YXMs5Fp+bzGLESFewzAVBMKuTg=
15-
github.com/gobuffalo/logger v1.0.1/go.mod h1:2zbswyIUa45I+c+FLXuWl9zSWEiVuthsk8ze5s8JvPs=
16-
github.com/gobuffalo/packd v0.3.0 h1:eMwymTkA1uXsqxS0Tpoop3Lc0u3kTfiMBE6nKtQU4g4=
17-
github.com/gobuffalo/packd v0.3.0/go.mod h1:zC7QkmNkYVGKPw4tHpBQ+ml7W/3tIebgeo1b36chA3Q=
18-
github.com/gobuffalo/packr/v2 v2.7.1 h1:n3CIW5T17T8v4GGK5sWXLVWJhCz7b5aNLSxW6gYim4o=
19-
github.com/gobuffalo/packr/v2 v2.7.1/go.mod h1:qYEvAazPaVxy7Y7KR0W8qYEE+RymX74kETFqjFoFlOc=
20-
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
21-
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
22-
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
23-
github.com/joho/godotenv v1.3.0 h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=
24-
github.com/joho/godotenv v1.3.0/go.mod h1:7hK45KPybAkOC6peb+G5yklZfMxEjkZhHbwpqxOKXbg=
25-
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
26-
github.com/konsorten/go-windows-terminal-sequences v1.0.2 h1:DB17ag19krx9CFsz4o3enTrPXyIXCl+2iCXH/aMAp9s=
27-
github.com/konsorten/go-windows-terminal-sequences v1.0.2/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
28-
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
29-
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
30-
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
31-
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
32-
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
33-
github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
34-
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
35-
github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
36-
github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
374
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
385
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
39-
github.com/rogpeppe/go-internal v1.1.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
40-
github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4=
41-
github.com/rogpeppe/go-internal v1.3.2/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
42-
github.com/rogpeppe/go-internal v1.4.0 h1:LUa41nrWTQNGhzdsZ5lTnkwbNjj6rXTdazA1cSdjkOY=
43-
github.com/rogpeppe/go-internal v1.4.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
44-
github.com/rogpeppe/go-internal v1.5.0 h1:Usqs0/lDK/NqTkvrmKSwA/3XkZAs7ZAW/eLeQ2MVBTw=
45-
github.com/rogpeppe/go-internal v1.5.0/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
46-
github.com/russross/blackfriday v1.5.2/go.mod h1:JO/DiYxRf+HjHt06OyowR9PTA263kcR/rfWxYHBV53g=
47-
github.com/sirupsen/logrus v1.4.2 h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=
48-
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
49-
github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
50-
github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
51-
github.com/spf13/cobra v0.0.5 h1:f0B+LkLX6DtmRH1isoNA9VTtNUK9K8xYd28JNNfOv/s=
52-
github.com/spf13/cobra v0.0.5/go.mod h1:3K3wKZymM7VvHMDS9+Akkh4K60UwM26emMESw8tLCHU=
53-
github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
54-
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
55-
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
56-
github.com/spf13/viper v1.3.2/go.mod h1:ZiWeW+zYFKm7srdB9IoDzzZXaJaI5eL9QjNiN/DMA2s=
6+
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
7+
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
578
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
58-
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
59-
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
60-
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
61-
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
62-
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
63-
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
64-
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8/go.mod h1:VFNgLljTbGfSG7qAOspJ7OScBnGdDN/yBr0sguwnwf0=
65-
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
66-
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
67-
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
68-
golang.org/x/crypto v0.0.0-20190621222207-cc06ce4a13d4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
69-
golang.org/x/crypto v0.0.0-20191108234033-bd318be0434a h1:R/qVym5WAxsZWQqZCwDY/8sdVKV1m1WgU4/S5IRQAzc=
70-
golang.org/x/crypto v0.0.0-20191108234033-bd318be0434a/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
71-
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
72-
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
73-
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
74-
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
75-
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
76-
golang.org/x/sys v0.0.0-20181205085412-a5c9d58dba9a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
77-
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
78-
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
79-
golang.org/x/sys v0.0.0-20190422165155-953cdadca894/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
80-
golang.org/x/sys v0.0.0-20190515120540-06a5c4944438/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
81-
golang.org/x/sys v0.0.0-20191105231009-c1f44814a5cd h1:3x5uuvBgE6oaXJjCOvpCC1IpgJogqQ+PqGGU3ZxAgII=
82-
golang.org/x/sys v0.0.0-20191105231009-c1f44814a5cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
83-
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
84-
golang.org/x/tools v0.0.0-20191004055002-72853e10c5a3 h1:2AmBLzhAfXj+2HCW09VCkJtHIYgHTIPcTeYqgP7Bwt0=
85-
golang.org/x/tools v0.0.0-20191004055002-72853e10c5a3/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
86-
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
9+
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
10+
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
11+
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 h1:0A+M6Uqn+Eje4kHMK80dtF3JCXC4ykBgQG4Fe06QRhQ=
12+
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
13+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
8714
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
88-
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
89-
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
90-
gopkg.in/errgo.v2 v2.1.0/go.mod h1:hNsd1EY+bozCKY1Ytp96fpM3vjJbqLJn88ws8XvfDNI=
91-
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
92-
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
15+
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
16+
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
17+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
18+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

internal/assets/assets.go

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package assets
2+
3+
import (
4+
"embed"
5+
"io/fs"
6+
)
7+
8+
//go:embed browser
9+
var WebAssets embed.FS
10+
11+
// GetWebFS returns the embedded web assets filesystem
12+
func GetWebFS() fs.FS {
13+
webFS, _ := fs.Sub(WebAssets, "browser")
14+
return webFS
15+
}

vendor/github.com/gobuffalo/envy/.env

Lines changed: 0 additions & 5 deletions
This file was deleted.

vendor/github.com/gobuffalo/envy/.gitignore

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)