diff --git a/_examples/file-server/embedding-files-into-app/main.go b/_examples/file-server/embedding-files-into-app/main.go index 22e73c0b..01f3d2c9 100644 --- a/_examples/file-server/embedding-files-into-app/main.go +++ b/_examples/file-server/embedding-files-into-app/main.go @@ -5,9 +5,7 @@ import ( ) // Follow these steps first: -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // $ go-bindata -prefix "assets" -fs ./assets/... // $ go run . // "physical" files are not used, you can delete the "assets" folder and run the example. diff --git a/_examples/file-server/embedding-gzipped-files-into-app/main.go b/_examples/file-server/embedding-gzipped-files-into-app/main.go index b1856a35..c6168578 100644 --- a/_examples/file-server/embedding-gzipped-files-into-app/main.go +++ b/_examples/file-server/embedding-gzipped-files-into-app/main.go @@ -6,9 +6,7 @@ import ( // How to run: // -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // $ go-bindata -prefix "../embedding-files-into-app/assets/" -fs ../embedding-files-into-app/assets/... // $ go run -mod=mod . // Time to complete the compression and caching of [2/3] files: 31.9998ms diff --git a/_examples/file-server/http2push-embedded-gzipped/main.go b/_examples/file-server/http2push-embedded-gzipped/main.go index 7daf8ea8..210f4833 100644 --- a/_examples/file-server/http2push-embedded-gzipped/main.go +++ b/_examples/file-server/http2push-embedded-gzipped/main.go @@ -7,8 +7,7 @@ import ( ) // How to run: -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR go get -u github.com/go-bindata/go-bindata/v3/go-bindata +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/... // $ go run . diff --git a/_examples/file-server/http2push-embedded/main.go b/_examples/file-server/http2push-embedded/main.go index da1c4e3b..e8dfbbf9 100644 --- a/_examples/file-server/http2push-embedded/main.go +++ b/_examples/file-server/http2push-embedded/main.go @@ -7,9 +7,7 @@ import ( ) // How to run: -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latesta // $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/... // # OR if the ./assets directory was inside this example foder: // # go-bindata -nomemcopy -refix "assets" ./assets/... diff --git a/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go b/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go index fa216a63..bda9d4d6 100644 --- a/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go +++ b/_examples/file-server/single-page-application/embedded-single-page-application-with-other-routes/main.go @@ -2,9 +2,7 @@ package main import "github.com/kataras/iris/v12" -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // $ go-bindata -fs -prefix "public" ./public/... // $ go run . diff --git a/_examples/file-server/single-page-application/embedded-single-page-application/main.go b/_examples/file-server/single-page-application/embedded-single-page-application/main.go index 1873b952..beab607e 100644 --- a/_examples/file-server/single-page-application/embedded-single-page-application/main.go +++ b/_examples/file-server/single-page-application/embedded-single-page-application/main.go @@ -2,7 +2,7 @@ package main import "github.com/kataras/iris/v12" -// $ go get -u github.com/go-bindata/go-bindata/... +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // $ go-bindata -fs ./data/... // $ go run . diff --git a/_examples/view/embedding-templates-into-app/main.go b/_examples/view/embedding-templates-into-app/main.go index ac1eedf2..ffd83683 100644 --- a/_examples/view/embedding-templates-into-app/main.go +++ b/_examples/view/embedding-templates-into-app/main.go @@ -5,9 +5,7 @@ import "github.com/kataras/iris/v12" func main() { app := iris.New() - // $ go get -u github.com/go-bindata/go-bindata/... - // # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata - // # to save it to your go.mod file + // $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // $ go-bindata -fs -prefix "templates" ./templates/... // $ go run . // html files are not used, you can delete the folder and run the example. diff --git a/_examples/view/template_amber_1_embedded/main.go b/_examples/view/template_amber_1_embedded/main.go index 455c60cc..207c8e88 100644 --- a/_examples/view/template_amber_1_embedded/main.go +++ b/_examples/view/template_amber_1_embedded/main.go @@ -2,9 +2,7 @@ package main import "github.com/kataras/iris/v12" -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // // $ go-bindata -fs -prefix "../template_amber_0/views" ../template_amber_0/views/... // $ go run . diff --git a/_examples/view/template_blocks_1_embedded/main.go b/_examples/view/template_blocks_1_embedded/main.go index ce7e46ea..b3e772b6 100644 --- a/_examples/view/template_blocks_1_embedded/main.go +++ b/_examples/view/template_blocks_1_embedded/main.go @@ -2,9 +2,7 @@ package main import "github.com/kataras/iris/v12" -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // // $ go-bindata -fs -prefix "../template_blocks_0/views" ../template_blocks_0/views/... // $ go run . diff --git a/_examples/view/template_jet_1_embedded/main.go b/_examples/view/template_jet_1_embedded/main.go index f789391a..28083ec5 100644 --- a/_examples/view/template_jet_1_embedded/main.go +++ b/_examples/view/template_jet_1_embedded/main.go @@ -10,9 +10,7 @@ import ( "github.com/kataras/iris/v12" ) -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // // $ go-bindata -fs -prefix "views" ./views/... // $ go run . diff --git a/_examples/view/template_pug_2_embedded/main.go b/_examples/view/template_pug_2_embedded/main.go index 5cc1c2ed..50ee2b50 100644 --- a/_examples/view/template_pug_2_embedded/main.go +++ b/_examples/view/template_pug_2_embedded/main.go @@ -2,9 +2,7 @@ package main import "github.com/kataras/iris/v12" -// $ go get -u github.com/go-bindata/go-bindata/... -// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -// # to save it to your go.mod file +// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest // // $ go-bindata -fs -prefix "templates" ./templates/... // $ go run . diff --git a/view/README.md b/view/README.md index 7873206e..3e488348 100644 --- a/view/README.md +++ b/view/README.md @@ -122,9 +122,7 @@ View engine supports bundled(https://github.com/go-bindata/go-bindata) template ```sh -$ go get -u github.com/go-bindata/go-bindata/... -# OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata -# to save it to your go.mod file +$ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest $ go-bindata -fs -prefix "templates" ./templates/... $ go run . ```