mirror of
https://github.com/kataras/iris.git
synced 2025-02-02 15:30:36 +01:00
upgrade go-bindata link to the most maintainable one
Former-commit-id: 58d5253b3332acef480d36f0cf716f2ad6b1c09e
This commit is contained in:
parent
d7beb9a752
commit
b20933e0bb
|
@ -5,7 +5,7 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// Follow these steps first:
|
// Follow these steps first:
|
||||||
// $ go get -u github.com/jteeuwen/go-bindata/...
|
// $ go get -u github.com/shuLhan/go-bindata/...
|
||||||
// $ go-bindata ./assets/...
|
// $ go-bindata ./assets/...
|
||||||
// $ go build
|
// $ go build
|
||||||
// $ ./embedding-files-into-app
|
// $ ./embedding-files-into-app
|
||||||
|
|
|
@ -2,7 +2,7 @@ package main
|
||||||
|
|
||||||
import "github.com/kataras/iris"
|
import "github.com/kataras/iris"
|
||||||
|
|
||||||
// $ go get -u github.com/jteeuwen/go-bindata/...
|
// $ go get -u github.com/shuLhan/go-bindata/...
|
||||||
// $ go-bindata ./public/...
|
// $ go-bindata ./public/...
|
||||||
// $ go build
|
// $ go build
|
||||||
// $ ./embedded-single-page-application-with-other-routes
|
// $ ./embedded-single-page-application-with-other-routes
|
||||||
|
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"github.com/kataras/iris"
|
"github.com/kataras/iris"
|
||||||
)
|
)
|
||||||
|
|
||||||
// $ go get -u github.com/jteeuwen/go-bindata/...
|
// $ go get -u github.com/shuLhan/go-bindata/...
|
||||||
// $ go-bindata ./public/...
|
// $ go-bindata ./public/...
|
||||||
// $ go build
|
// $ go build
|
||||||
// $ ./embedded-single-page-application
|
// $ ./embedded-single-page-application
|
||||||
|
|
|
@ -13,7 +13,7 @@ func main() {
|
||||||
return "Greetings " + s + "!"
|
return "Greetings " + s + "!"
|
||||||
})
|
})
|
||||||
|
|
||||||
// $ go get -u github.com/jteeuwen/go-bindata/...
|
// $ go get -u github.com/shuLhan/go-bindata/...
|
||||||
// $ go-bindata ./templates/...
|
// $ go-bindata ./templates/...
|
||||||
// $ go build
|
// $ go build
|
||||||
// $ ./embedding-templates-into-app
|
// $ ./embedding-templates-into-app
|
||||||
|
|
4
doc.go
4
doc.go
|
@ -1121,7 +1121,7 @@ Example code:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
View engine supports bundled(https://github.com/jteeuwen/go-bindata) template files too.
|
View engine supports bundled(https://github.com/shuLhan/go-bindata) template files too.
|
||||||
go-bindata gives you two functions, asset and assetNames,
|
go-bindata gives you two functions, asset and assetNames,
|
||||||
these can be setted to each of the template engines using the `.Binary` func.
|
these can be setted to each of the template engines using the `.Binary` func.
|
||||||
|
|
||||||
|
@ -1133,7 +1133,7 @@ Example code:
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := iris.New()
|
app := iris.New()
|
||||||
// $ go get -u github.com/jteeuwen/go-bindata/...
|
// $ go get -u github.com/shuLhan/go-bindata/...
|
||||||
// $ go-bindata ./templates/...
|
// $ go-bindata ./templates/...
|
||||||
// $ go build
|
// $ go build
|
||||||
// $ ./embedding-templates-into-app
|
// $ ./embedding-templates-into-app
|
||||||
|
|
|
@ -112,7 +112,7 @@ func hi(ctx iris.Context) {
|
||||||
|
|
||||||
## Embedded
|
## Embedded
|
||||||
|
|
||||||
View engine supports bundled(https://github.com/jteeuwen/go-bindata) template files too.
|
View engine supports bundled(https://github.com/shuLhan/go-bindata) template files too.
|
||||||
`go-bindata` gives you two functions, `Assset` and `AssetNames`,
|
`go-bindata` gives you two functions, `Assset` and `AssetNames`,
|
||||||
these can be setted to each of the template engines using the `.Binary` function.
|
these can be setted to each of the template engines using the `.Binary` function.
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ import "github.com/kataras/iris"
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
app := iris.New()
|
app := iris.New()
|
||||||
// $ go get -u github.com/jteeuwen/go-bindata/...
|
// $ go get -u github.com/shuLhan/go-bindata/...
|
||||||
// $ go-bindata ./templates/...
|
// $ go-bindata ./templates/...
|
||||||
// $ go build
|
// $ go build
|
||||||
// $ ./embedding-templates-into-app
|
// $ ./embedding-templates-into-app
|
||||||
|
|
Loading…
Reference in New Issue
Block a user