mirror of
https://github.com/kataras/iris.git
synced 2025-03-12 01:34:14 +01:00
minor README changes
Former-commit-id: becf1864dfbb24409f51122eaee5b1e2b979a20b
This commit is contained in:
parent
42e752b3f5
commit
a42f914ce8
11
README.md
11
README.md
|
@ -1,8 +1,11 @@
|
||||||
<!-- # Iris Web Framework <a href="README_ZH.md"> <img width="20px" src="https://iris-go.com/images/flag-china.svg?v=10" /></a> <a href="README_RU.md"><img width="20px" src="https://iris-go.com/images/flag-russia.svg?v=10" /></a> <a href="README_ID.md"> <img width="20px" src="https://iris-go.com/images/flag-indonesia.svg?v=10" /></a> <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> <a href="README_PT_BR.md"><img width="20px" src="https://iris-go.com/images/flag-pt-br.svg?v=10" /></a> <a href="README_JPN.md"><img width="20px" src="https://iris-go.com/images/flag-japan.svg?v=10" /></a> -->
|
<div align="center">
|
||||||
|
<a href="https://iris-go.com"><img src="https://iris-go.com/images/logo.png" alt="iris-go.com logo" height="160"></a>
|
||||||
|
|
||||||
# Iris <a href="README_ZH.md"><img width="20px" src="https://iris-go.com/images/flag-china.svg?v=10" /></a> <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> <a href="README_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a> <a href="README_KO.md"><img width="20px" src="https://iris-go.com/images/flag-south-korea.svg" /></a> <a href="README_FA.md"><img width="20px" src="https://iris-go.com/images/flag-iran.svg" /></a>
|
# Iris Web Framework <a href="README_ZH.md"><img width="20px" src="https://iris-go.com/images/flag-china.svg?v=10" /></a> <a href="README_GR.md"><img width="20px" src="https://iris-go.com/images/flag-greece.svg?v=10" /></a> <a href="README_ES.md"><img width="20px" src="https://iris-go.com/images/flag-spain.png" /></a> <a href="README_KO.md"><img width="20px" src="https://iris-go.com/images/flag-south-korea.svg" /></a> <a href="README_FA.md"><img width="20px" src="https://iris-go.com/images/flag-iran.svg" /></a>
|
||||||
|
|
||||||
[](https://travis-ci.org/kataras/iris) [](https://goreportcard.com/report/github.com/kataras/iris)<!--[](https://godoc.org/github.com/kataras/iris)--> [](https://github.com/kataras/iris/tree/master/_examples) [](https://gitter.im/iris_go/community) [](https://github.com/kataras/iris/releases)
|
</div>
|
||||||
|
|
||||||
|
[](https://travis-ci.org/kataras/iris) [](https://goreportcard.com/report/github.com/kataras/iris)<!--[](https://godoc.org/github.com/kataras/iris)--> [](https://github.com/kataras/iris/tree/master/_examples) [](https://gitter.im/iris_go/community) [](https://www.paypal.me/kataras) <!-- [](https://github.com/kataras/iris/releases) -->
|
||||||
|
|
||||||
Iris is a fast, simple yet fully featured and very efficient web framework for Go. It provides a beautifully expressive and easy to use foundation for your next website or API.
|
Iris is a fast, simple yet fully featured and very efficient web framework for Go. It provides a beautifully expressive and easy to use foundation for your next website or API.
|
||||||
|
|
||||||
|
@ -56,7 +59,7 @@ For a more detailed technical documentation you can head over to our [godocs](ht
|
||||||
|
|
||||||
<a href="https://bit.ly/iris-req-book"> <img alt="Book cover" src="https://iris-go.com/images/iris-book-cover-sm.jpg" width="200" /> </a>
|
<a href="https://bit.ly/iris-req-book"> <img alt="Book cover" src="https://iris-go.com/images/iris-book-cover-sm.jpg" width="200" /> </a>
|
||||||
|
|
||||||
[](https://twitter.com/intent/follow?screen_name=makismaropoulos)
|
<!-- [](https://twitter.com/intent/follow?screen_name=makismaropoulos) -->
|
||||||
|
|
||||||
You can [request](https://bit.ly/iris-req-book) a PDF version and online access of the **E-Book** today and be participated in the development of Iris.
|
You can [request](https://bit.ly/iris-req-book) a PDF version and online access of the **E-Book** today and be participated in the development of Iris.
|
||||||
|
|
||||||
|
|
|
@ -464,8 +464,8 @@ func FileServer(directory string, opts ...DirOptions) context.Handler {
|
||||||
// Usage:
|
// Usage:
|
||||||
// fileserver := FileServer("./static_files", DirOptions {...})
|
// fileserver := FileServer("./static_files", DirOptions {...})
|
||||||
// h := StripPrefix("/static", fileserver)
|
// h := StripPrefix("/static", fileserver)
|
||||||
// app.Get("/static/{f:path}", h)
|
// app.Get("/static/{file:path}", h)
|
||||||
// app.Head("/static/{f:path}", h)
|
// app.Head("/static/{file:path}", h)
|
||||||
func StripPrefix(prefix string, h context.Handler) context.Handler {
|
func StripPrefix(prefix string, h context.Handler) context.Handler {
|
||||||
if prefix == "" {
|
if prefix == "" {
|
||||||
return h
|
return h
|
||||||
|
|
4
iris.go
4
iris.go
|
@ -383,8 +383,8 @@ var (
|
||||||
// Usage:
|
// Usage:
|
||||||
// fileserver := iris.FileServer("./static_files", DirOptions {...})
|
// fileserver := iris.FileServer("./static_files", DirOptions {...})
|
||||||
// h := iris.StripPrefix("/static", fileserver)
|
// h := iris.StripPrefix("/static", fileserver)
|
||||||
// app.Get("/static/{f:path}", h)
|
// app.Get("/static/{file:path}", h)
|
||||||
// app.Head("/static/{f:path}", h)
|
// app.Head("/static/{file:path}", h)
|
||||||
StripPrefix = router.StripPrefix
|
StripPrefix = router.StripPrefix
|
||||||
// Gzip is a middleware which enables writing
|
// Gzip is a middleware which enables writing
|
||||||
// using gzip compression, if client supports.
|
// using gzip compression, if client supports.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user