File tree 12 files changed +12
-33
lines changed
embedding-gzipped-files-into-app
http2push-embedded-gzipped
embedded-single-page-application
embedded-single-page-application-with-other-routes
embedding-templates-into-app
template_amber_1_embedded
template_blocks_1_embedded
12 files changed +12
-33
lines changed Original file line number Diff line number Diff line change 5
5
)
6
6
7
7
// Follow these steps first:
8
- // $ go get -u github.com/go-bindata/go-bindata/...
9
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
10
- // # to save it to your go.mod file
8
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
11
9
// $ go-bindata -prefix "assets" -fs ./assets/...
12
10
// $ go run .
13
11
// "physical" files are not used, you can delete the "assets" folder and run the example.
Original file line number Diff line number Diff line change 6
6
7
7
// How to run:
8
8
//
9
- // $ go get -u github.com/go-bindata/go-bindata/...
10
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
11
- // # to save it to your go.mod file
9
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
12
10
// $ go-bindata -prefix "../embedding-files-into-app/assets/" -fs ../embedding-files-into-app/assets/...
13
11
// $ go run -mod=mod .
14
12
// Time to complete the compression and caching of [2/3] files: 31.9998ms
Original file line number Diff line number Diff line change 7
7
)
8
8
9
9
// How to run:
10
- // $ go get -u github.com/go-bindata/go-bindata/...
11
- // # OR go get -u github.com/go-bindata/go-bindata/v3/go-bindata
10
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
12
11
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
13
12
// $ go run .
14
13
Original file line number Diff line number Diff line change 7
7
)
8
8
9
9
// How to run:
10
- // $ go get -u github.com/go-bindata/go-bindata/...
11
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
12
- // # to save it to your go.mod file
10
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latesta
13
11
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
14
12
// # OR if the ./assets directory was inside this example foder:
15
13
// # go-bindata -nomemcopy -refix "assets" ./assets/...
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ package main
2
2
3
3
import "github.com/kataras/iris/v12"
4
4
5
- // $ go get -u github.com/go-bindata/go-bindata/...
6
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
7
- // # to save it to your go.mod file
5
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
8
6
// $ go-bindata -fs -prefix "public" ./public/...
9
7
// $ go run .
10
8
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package main
2
2
3
3
import "github.com/kataras/iris/v12"
4
4
5
- // $ go get -u github.com/go-bindata/go-bindata/...
5
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
6
6
// $ go-bindata -fs ./data/...
7
7
// $ go run .
8
8
Original file line number Diff line number Diff line change @@ -5,9 +5,7 @@ import "github.com/kataras/iris/v12"
5
5
func main () {
6
6
app := iris .New ()
7
7
8
- // $ go get -u github.com/go-bindata/go-bindata/...
9
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
10
- // # to save it to your go.mod file
8
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
11
9
// $ go-bindata -fs -prefix "templates" ./templates/...
12
10
// $ go run .
13
11
// html files are not used, you can delete the folder and run the example.
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ package main
2
2
3
3
import "github.com/kataras/iris/v12"
4
4
5
- // $ go get -u github.com/go-bindata/go-bindata/...
6
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
7
- // # to save it to your go.mod file
5
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
8
6
//
9
7
// $ go-bindata -fs -prefix "../template_amber_0/views" ../template_amber_0/views/...
10
8
// $ go run .
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ package main
2
2
3
3
import "github.com/kataras/iris/v12"
4
4
5
- // $ go get -u github.com/go-bindata/go-bindata/...
6
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
7
- // # to save it to your go.mod file
5
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
8
6
//
9
7
// $ go-bindata -fs -prefix "../template_blocks_0/views" ../template_blocks_0/views/...
10
8
// $ go run .
Original file line number Diff line number Diff line change @@ -10,9 +10,7 @@ import (
10
10
"github.com/kataras/iris/v12"
11
11
)
12
12
13
- // $ go get -u github.com/go-bindata/go-bindata/...
14
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
15
- // # to save it to your go.mod file
13
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
16
14
//
17
15
// $ go-bindata -fs -prefix "views" ./views/...
18
16
// $ go run .
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ package main
2
2
3
3
import "github.com/kataras/iris/v12"
4
4
5
- // $ go get -u github.com/go-bindata/go-bindata/...
6
- // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
7
- // # to save it to your go.mod file
5
+ // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
8
6
//
9
7
// $ go-bindata -fs -prefix "templates" ./templates/...
10
8
// $ go run .
Original file line number Diff line number Diff line change @@ -122,9 +122,7 @@ View engine supports bundled(https://github.com/go-bindata/go-bindata) template
122
122
123
123
124
124
``` sh
125
- $ go get -u github.com/go-bindata/go-bindata/...
126
- # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
127
- # to save it to your go.mod file
125
+ $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
128
126
$ go-bindata -fs -prefix " templates" ./templates/...
129
127
$ go run .
130
128
```
You can’t perform that action at this time.
0 commit comments