Skip to content

Commit 141862d

Browse files
committed
_examples: minor
1 parent 42b7297 commit 141862d

File tree

12 files changed

+12
-33
lines changed
  • _examples
    • file-server
      • embedding-files-into-app
      • embedding-gzipped-files-into-app
      • http2push-embedded
      • http2push-embedded-gzipped
      • single-page-application
        • embedded-single-page-application
        • embedded-single-page-application-with-other-routes
    • view
  • view

12 files changed

+12
-33
lines changed

_examples/file-server/embedding-files-into-app/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import (
55
)
66

77
// 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
119
// $ go-bindata -prefix "assets" -fs ./assets/...
1210
// $ go run .
1311
// "physical" files are not used, you can delete the "assets" folder and run the example.

_examples/file-server/embedding-gzipped-files-into-app/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@ import (
66

77
// How to run:
88
//
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
1210
// $ go-bindata -prefix "../embedding-files-into-app/assets/" -fs ../embedding-files-into-app/assets/...
1311
// $ go run -mod=mod .
1412
// Time to complete the compression and caching of [2/3] files: 31.9998ms

_examples/file-server/http2push-embedded-gzipped/main.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import (
77
)
88

99
// 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
1211
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
1312
// $ go run .
1413

_examples/file-server/http2push-embedded/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import (
77
)
88

99
// 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
1311
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
1412
// # OR if the ./assets directory was inside this example foder:
1513
// # go-bindata -nomemcopy -refix "assets" ./assets/...

_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package main
22

33
import "github.com/kataras/iris/v12"
44

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
86
// $ go-bindata -fs -prefix "public" ./public/...
97
// $ go run .
108

_examples/file-server/single-page-application/embedded-single-page-application/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import "github.com/kataras/iris/v12"
44

5-
// $ go get -u github.com/go-bindata/go-bindata/...
5+
// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
66
// $ go-bindata -fs ./data/...
77
// $ go run .
88

_examples/view/embedding-templates-into-app/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import "github.com/kataras/iris/v12"
55
func main() {
66
app := iris.New()
77

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
119
// $ go-bindata -fs -prefix "templates" ./templates/...
1210
// $ go run .
1311
// html files are not used, you can delete the folder and run the example.

_examples/view/template_amber_1_embedded/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package main
22

33
import "github.com/kataras/iris/v12"
44

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
86
//
97
// $ go-bindata -fs -prefix "../template_amber_0/views" ../template_amber_0/views/...
108
// $ go run .

_examples/view/template_blocks_1_embedded/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package main
22

33
import "github.com/kataras/iris/v12"
44

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
86
//
97
// $ go-bindata -fs -prefix "../template_blocks_0/views" ../template_blocks_0/views/...
108
// $ go run .

_examples/view/template_jet_1_embedded/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ import (
1010
"github.com/kataras/iris/v12"
1111
)
1212

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
1614
//
1715
// $ go-bindata -fs -prefix "views" ./views/...
1816
// $ go run .

_examples/view/template_pug_2_embedded/main.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ package main
22

33
import "github.com/kataras/iris/v12"
44

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
86
//
97
// $ go-bindata -fs -prefix "templates" ./templates/...
108
// $ go run .

view/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,7 @@ View engine supports bundled(https://github.com/go-bindata/go-bindata) template
122122

123123

124124
```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
128126
$ go-bindata -fs -prefix "templates" ./templates/...
129127
$ go run .
130128
```

0 commit comments

Comments
 (0)