Former-commit-id: 1774927a71b0570c9f887e298562f602b8ed1309
This commit is contained in:
Gerasimos (Makis) Maropoulos 2017-09-27 17:30:09 +03:00
parent 1b1ec0ab4c
commit 95fe7c2853
2 changed files with 11 additions and 6 deletions

View File

@ -17,9 +17,13 @@ you can find online.
Iris may have reached version 8, but we're not stopping there. We have many feature ideas on our board that we're anxious to add and other innovative web development solutions that we're planning to build into Iris. Iris may have reached version 8, but we're not stopping there. We have many feature ideas on our board that we're anxious to add and other innovative web development solutions that we're planning to build into Iris.
[Star or watch](https://github.com/kataras/iris/stargazers) this repository to stay updated. [Star](https://github.com/kataras/iris/stargazers) and watch this github repository to stay up to date.
**Accelerated by [KeyCDN](https://www.keycdn.com/)**, A Simple, Fast and Reliable CDN. Iris was built on top of the the [net/http](https://golang.org/pkg/net/http/) package, we own many thanks to [Brad Fitzpatrick](https://github.com/bradfitz) for that.
**Accelerated** by [KeyCDN](https://www.keycdn.com/), A Simple, Fast and Reliable CDN.
**We are developing** this project using the best code editor for Golang; [Visual Studio Code](https://code.visualstudio.com/) supported by [Microsoft](https://www.microsoft.com).
<!-- [![total used by](https://iris-go.com/graph?style=flat-square)](https://iris-go.com/graph) --> <!-- [![total used by](https://iris-go.com/graph?style=flat-square)](https://iris-go.com/graph) -->
[![build status](https://img.shields.io/travis/kataras/iris/master.svg?style=flat-square)](https://travis-ci.org/kataras/iris) [![build status](https://img.shields.io/travis/kataras/iris/master.svg?style=flat-square)](https://travis-ci.org/kataras/iris)
@ -83,7 +87,7 @@ The only requirement is the [Go Programming Language](https://golang.org/dl/), a
$ go get -u github.com/kataras/iris $ go get -u github.com/kataras/iris
``` ```
> _iris_ takes advantage of the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo) feature. You get truly reproducible builds, as this method guards against upstream renames and deletes. > _iris_ takes advantage of the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo) feature. You get truly reproducible builds, as this method guards against upstream renames and deletes.
```go ```go
// file: main.go // file: main.go
@ -136,6 +140,8 @@ $ go run main.go
> Application started. Press CTRL+C to shut down. > Application started. Press CTRL+C to shut down.
``` ```
> Examples and docs are updated to Go 1.9, please refer to that [section](https://github.com/kataras/iris/blob/master/faq.md#type-aliases) before anything else.
<details> <details>
<summary>Hello World with Go 1.8</summary> <summary>Hello World with Go 1.8</summary>
@ -344,7 +350,6 @@ The _iris_ philosophy is to provide robust tooling for HTTP, making it a great s
_iris_ does not force you to use any specific ORM. With support for the most popular template engines, websocket server and a fast sessions manager you can quickly craft your perfect application. _iris_ does not force you to use any specific ORM. With support for the most popular template engines, websocket server and a fast sessions manager you can quickly craft your perfect application.
The awesome _iris_ community is always adding new examples, [_examples](_examples/) is a great place to get started! The awesome _iris_ community is always adding new examples, [_examples](_examples/) is a great place to get started!
Read the [godocs](https://godoc.org/github.com/kataras/iris) for a better understanding. Read the [godocs](https://godoc.org/github.com/kataras/iris) for a better understanding.

4
faq.md
View File

@ -26,7 +26,7 @@ Want to help and join to the greatest community? Describe your skills and push y
| build error | reason | solution | | build error | reason | solution |
| -----------|--------|--------| | -----------|--------|--------|
| `undefinied iris.Context` | caused of using the **optional type alias** `iris.Context` instead of the `context.Context` when building with Go 1.8 | import the original package `github.com/kataras/iris/context` and declare as `func(context.Context){})` **or** download and install the [latest go version](https://golang.org/dl) | | `undefined iris.Context` | caused of using the **optional type alias** `iris.Context` instead of the `context.Context` when building with Go 1.8 | import the original package `github.com/kataras/iris/context` and declare as `func(context.Context){})` **or** download and install the [latest go version](https://golang.org/dl) _recommended_ |
Type alias is a new feature, introduced at Go version 1.9, so if you want to use Iris' type aliases you have to build using the latest Go version. Nothing really changes for your application if you use type alias or not, Iris' type aliases helps you to omit import statements -- to reduce lines of code, nothing more. Type alias is a new feature, introduced at Go version 1.9, so if you want to use Iris' type aliases you have to build using the latest Go version. Nothing really changes for your application if you use type alias or not, Iris' type aliases helps you to omit import statements -- to reduce lines of code, nothing more.
@ -49,7 +49,7 @@ Available type aliases;
You can find all type aliases and their original package import statements at the [./context.go file](context.go). You can find all type aliases and their original package import statements at the [./context.go file](context.go).
> Remember; this doesn't mean that you have to use those type alias, you can continue import the original packages as you did with Go version 1.8. > Remember; this doesn't mean that you have to use those type aliases, you can still import the original packages as you did with Go version 1.8, it's up to you.
## Active development mode ## Active development mode