mirror of
https://github.com/kataras/iris.git
synced 2025-02-09 02:34:55 +01:00
_examples: minor
This commit is contained in:
parent
42b729732c
commit
141862db37
|
@ -5,9 +5,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Follow these steps first:
|
// Follow these steps first:
|
||||||
// $ go get -u github.com/go-bindata/go-bindata/...
|
// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
// $ go-bindata -prefix "assets" -fs ./assets/...
|
// $ go-bindata -prefix "assets" -fs ./assets/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
// "physical" files are not used, you can delete the "assets" folder and run the example.
|
// "physical" files are not used, you can delete the "assets" folder and run the example.
|
||||||
|
|
|
@ -6,9 +6,7 @@ import (
|
||||||
|
|
||||||
// How to run:
|
// How to run:
|
||||||
//
|
//
|
||||||
// $ go get -u github.com/go-bindata/go-bindata/...
|
// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
// $ go-bindata -prefix "../embedding-files-into-app/assets/" -fs ../embedding-files-into-app/assets/...
|
// $ go-bindata -prefix "../embedding-files-into-app/assets/" -fs ../embedding-files-into-app/assets/...
|
||||||
// $ go run -mod=mod .
|
// $ go run -mod=mod .
|
||||||
// Time to complete the compression and caching of [2/3] files: 31.9998ms
|
// Time to complete the compression and caching of [2/3] files: 31.9998ms
|
||||||
|
|
|
@ -7,8 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// How to run:
|
// How to run:
|
||||||
// $ go get -u github.com/go-bindata/go-bindata/...
|
// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
|
||||||
// # OR go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
|
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
|
|
||||||
|
|
|
@ -7,9 +7,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// How to run:
|
// How to run:
|
||||||
// $ go get -u github.com/go-bindata/go-bindata/...
|
// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latesta
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
|
// $ go-bindata -nomemcopy -fs -prefix "../http2push/assets" ../http2push/assets/...
|
||||||
// # OR if the ./assets directory was inside this example foder:
|
// # OR if the ./assets directory was inside this example foder:
|
||||||
// # go-bindata -nomemcopy -refix "assets" ./assets/...
|
// # go-bindata -nomemcopy -refix "assets" ./assets/...
|
||||||
|
|
|
@ -2,9 +2,7 @@ package main
|
||||||
|
|
||||||
import "github.com/kataras/iris/v12"
|
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
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
// $ go-bindata -fs -prefix "public" ./public/...
|
// $ go-bindata -fs -prefix "public" ./public/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
import "github.com/kataras/iris/v12"
|
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-bindata -fs ./data/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
|
|
||||||
|
|
|
@ -5,9 +5,7 @@ import "github.com/kataras/iris/v12"
|
||||||
func main() {
|
func main() {
|
||||||
app := iris.New()
|
app := iris.New()
|
||||||
|
|
||||||
// $ go get -u github.com/go-bindata/go-bindata/...
|
// $ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
// $ go-bindata -fs -prefix "templates" ./templates/...
|
// $ go-bindata -fs -prefix "templates" ./templates/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
// html files are not used, you can delete the folder and run the example.
|
// html files are not used, you can delete the folder and run the example.
|
||||||
|
|
|
@ -2,9 +2,7 @@ package main
|
||||||
|
|
||||||
import "github.com/kataras/iris/v12"
|
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
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
//
|
//
|
||||||
// $ go-bindata -fs -prefix "../template_amber_0/views" ../template_amber_0/views/...
|
// $ go-bindata -fs -prefix "../template_amber_0/views" ../template_amber_0/views/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
|
|
|
@ -2,9 +2,7 @@ package main
|
||||||
|
|
||||||
import "github.com/kataras/iris/v12"
|
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
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
//
|
//
|
||||||
// $ go-bindata -fs -prefix "../template_blocks_0/views" ../template_blocks_0/views/...
|
// $ go-bindata -fs -prefix "../template_blocks_0/views" ../template_blocks_0/views/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
|
|
|
@ -10,9 +10,7 @@ import (
|
||||||
"github.com/kataras/iris/v12"
|
"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
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
//
|
//
|
||||||
// $ go-bindata -fs -prefix "views" ./views/...
|
// $ go-bindata -fs -prefix "views" ./views/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
|
|
|
@ -2,9 +2,7 @@ package main
|
||||||
|
|
||||||
import "github.com/kataras/iris/v12"
|
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
|
||||||
// # OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
// # to save it to your go.mod file
|
|
||||||
//
|
//
|
||||||
// $ go-bindata -fs -prefix "templates" ./templates/...
|
// $ go-bindata -fs -prefix "templates" ./templates/...
|
||||||
// $ go run .
|
// $ go run .
|
||||||
|
|
|
@ -122,9 +122,7 @@ View engine supports bundled(https://github.com/go-bindata/go-bindata) template
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ go get -u github.com/go-bindata/go-bindata/...
|
$ go install github.com/go-bindata/go-bindata/v3/go-bindata@latest
|
||||||
# OR: go get -u github.com/go-bindata/go-bindata/v3/go-bindata
|
|
||||||
# to save it to your go.mod file
|
|
||||||
$ go-bindata -fs -prefix "templates" ./templates/...
|
$ go-bindata -fs -prefix "templates" ./templates/...
|
||||||
$ go run .
|
$ go run .
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue
Block a user