mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
_examples: minor
This commit is contained in:
parent
42b729732c
commit
141862db37
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 .
|
||||
|
||||
|
|
|
@ -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/...
|
||||
|
|
|
@ -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 .
|
||||
|
||||
|
|
|
@ -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 .
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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 .
|
||||
|
|
|
@ -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 .
|
||||
|
|
|
@ -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 .
|
||||
|
|
|
@ -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 .
|
||||
|
|
|
@ -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 .
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue
Block a user