From a42f914ce8a7b67cf413304873fcb1bdcc0d33f9 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Tue, 5 Nov 2019 22:12:26 +0200 Subject: [PATCH] minor README changes Former-commit-id: becf1864dfbb24409f51122eaee5b1e2b979a20b --- README.md | 11 +++++++---- core/router/fs.go | 4 ++-- iris.go | 4 ++-- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bb289976..b6205387 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,11 @@ - +
+ iris-go.com logo -# Iris + # Iris Web Framework -[![build status](https://img.shields.io/travis/kataras/iris/master.svg?style=for-the-badge)](https://travis-ci.org/kataras/iris) [![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=for-the-badge)](https://goreportcard.com/report/github.com/kataras/iris) [![view examples](https://img.shields.io/badge/learn%20by-examples-0077b3.svg?style=for-the-badge)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=blue&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) [![release](https://img.shields.io/badge/release%20-v12.0-0077b3.svg?style=for-the-badge)](https://github.com/kataras/iris/releases) +
+ +[![build status](https://img.shields.io/travis/kataras/iris/master.svg?style=for-the-badge)](https://travis-ci.org/kataras/iris) [![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=for-the-badge)](https://goreportcard.com/report/github.com/kataras/iris) [![view examples](https://img.shields.io/badge/learn%20by-examples-0077b3.svg?style=for-the-badge)](https://github.com/kataras/iris/tree/master/_examples) [![chat](https://img.shields.io/gitter/room/iris_go/community.svg?color=blue&logo=gitter&style=for-the-badge)](https://gitter.im/iris_go/community) [![donate on PayPal](https://img.shields.io/badge/support-PayPal-blue.svg?style=for-the-badge)](https://www.paypal.me/kataras) 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 Book cover -[![follow author](https://img.shields.io/twitter/follow/makismaropoulos.svg?style=for-the-badge)](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. diff --git a/core/router/fs.go b/core/router/fs.go index 6e769bfc..3e197b5b 100644 --- a/core/router/fs.go +++ b/core/router/fs.go @@ -464,8 +464,8 @@ func FileServer(directory string, opts ...DirOptions) context.Handler { // Usage: // fileserver := FileServer("./static_files", DirOptions {...}) // h := StripPrefix("/static", fileserver) -// app.Get("/static/{f:path}", h) -// app.Head("/static/{f:path}", h) +// app.Get("/static/{file:path}", h) +// app.Head("/static/{file:path}", h) func StripPrefix(prefix string, h context.Handler) context.Handler { if prefix == "" { return h diff --git a/iris.go b/iris.go index f5bdf68b..ae545bba 100644 --- a/iris.go +++ b/iris.go @@ -383,8 +383,8 @@ var ( // Usage: // fileserver := iris.FileServer("./static_files", DirOptions {...}) // h := iris.StripPrefix("/static", fileserver) - // app.Get("/static/{f:path}", h) - // app.Head("/static/{f:path}", h) + // app.Get("/static/{file:path}", h) + // app.Head("/static/{file:path}", h) StripPrefix = router.StripPrefix // Gzip is a middleware which enables writing // using gzip compression, if client supports.