mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 02:31:04 +01:00
Nothing serious yet, thinking new features with the team, post some to help us!
Former-commit-id: 5741c47230bd2f3b88bf9e943742418be664cfdd
This commit is contained in:
parent
eb087e5ba6
commit
4f2985cb4e
|
@ -18,6 +18,12 @@ Developers are not forced to upgrade if they don't really need it. Upgrade whene
|
|||
|
||||
**How to upgrade**: Open your command-line and execute this command: `go get -u github.com/kataras/iris`.
|
||||
|
||||
# Su, 30 July 2017
|
||||
|
||||
Greetings my friends, nothing special today, no version number yet.
|
||||
|
||||
We just improve the, external, Iris Logging library and the `Columns` config field from `middleware/logger` defaults to `false` now. Upgrade with `go get -u github.com/kataras/iris` and have fun!
|
||||
|
||||
# Sa, 29 July 2017 | v8.1.1
|
||||
|
||||
No breaking changes, just an addition to make your life easier.
|
||||
|
|
46
README.md
46
README.md
|
@ -5,27 +5,18 @@ Iris is a fast, simple and efficient micro web framework for Go. It provides a b
|
|||
[![total used by](http://iris-go.com/graph?style=flat-square)](http://iris-go.com/graph)
|
||||
[![build status](https://img.shields.io/travis/kataras/iris/master.svg?style=flat-square)](https://travis-ci.org/kataras/iris)
|
||||
[![report card](https://img.shields.io/badge/report%20card-a%2B-ff3333.svg?style=flat-square)](http://goreportcard.com/report/kataras/iris)
|
||||
[![github issues](https://img.shields.io/github/issues/kataras/iris.svg?style=flat-square)](https://github.com/kataras/iris/issues?q=is%3Aopen+is%3Aissue)
|
||||
[![github closed issues](https://img.shields.io/github/issues-closed-raw/kataras/iris.svg?style=flat-square)](https://github.com/kataras/iris/issues?q=is%3Aissue+is%3Aclosed)
|
||||
[![issue stats](https://img.shields.io/issuestats/i/github/kataras/iris.svg?style=flat-square)](https://github.com/kataras/iris/issues?q=is%3Aissue+is%3Aclosed)
|
||||
[![view examples](https://img.shields.io/badge/learn%20by-examples-0077b3.svg?style=flat-square)](https://github.com/kataras/iris/tree/master/_examples)
|
||||
[![chat](https://img.shields.io/badge/community-%20chat-00BCD4.svg?style=flat-square)](https://kataras.rocket.chat/channel/iris)
|
||||
|
||||
<!-- has issues, the img.shields.io's API is problematic for this resource: [![issue stats](https://img.shields.io/issuestats/i/github/kataras/iris.svg?style=flat-square)](https://github.com/kataras/iris/issues?q=is%3Aissue+is%3Aclosed) -->
|
||||
<!-- [![godocs](https://img.shields.io/badge/godocs-8.x.x-0366d6.svg?style=flat-square)](https://godoc.org/github.com/kataras/iris) -->
|
||||
|
||||
## 😃 Get Hired with Iris
|
||||
|
||||
**You have always more possibilities to get hired when you have experience with Iris web framework.**
|
||||
|
||||
Below you'll find a list of opening positions, the list can be updated by us or by the employers.
|
||||
|
||||
| Company | Position | Job Details |
|
||||
| -----------|--------|-------------|
|
||||
| Kudo, an Indonesian startup technology company | Application Programming Interface Developer | https://glints.id/opportunities/jobs/5553 |
|
||||
|
||||
<p>
|
||||
<img src="https://raw.githubusercontent.com/smallnest/go-web-framework-benchmark/4db507a22c964c9bc9774c5b31afdc199a0fe8b7/benchmark.png" alt="Third-party source for transparency." />
|
||||
</p>
|
||||
|
||||
|
||||
### 📑 Table of contents
|
||||
|
||||
* [Installation](#-installation)
|
||||
|
@ -56,6 +47,7 @@ Below you'll find a list of opening positions, the list can be updated by us or
|
|||
* [Versioning](#-version)
|
||||
* [When should I upgrade?](#should-i-upgrade-my-iris)
|
||||
* [Where can I find older versions?](#where-can-i-find-older-versions)
|
||||
* [Get Hired](#-get-hired)
|
||||
* [People](#-people)
|
||||
|
||||
<!--
|
||||
|
@ -165,17 +157,17 @@ func main() {
|
|||
}
|
||||
```
|
||||
|
||||
We expect Go version 1.9 to be released in August, however you can install Go 1.9 beta today.
|
||||
We expect Go version 1.9 to be released in August, however you can install Go 1.9 RC1 today.
|
||||
|
||||
### Installing Go 1.9beta2
|
||||
### Installing Go 1.9rc1
|
||||
|
||||
1. Go to https://golang.org/dl/#go1.9beta2
|
||||
2. Download a compatible, with your OS, archive, i.e `go1.9beta2.windows-amd64.zip`
|
||||
3. Unzip the contents of `go1.9beta2.windows-amd64.zip/go` folder to your $GOROOT, i.e `C:\Go`
|
||||
4. Open a terminal and execute `go version`, it should output the go1.9beta2 version, i.e:
|
||||
1. Go to https://golang.org/dl/#go1.9rc1
|
||||
2. Download a compatible, with your OS, archive or executable, i.e `go1.9rc1.windows-amd64.zip`
|
||||
3. Unzip the contents of `go1.9rc1.windows-amd64.zip` folder to your $GOROOT, i.e `C:\Go` or just execute the executable you've just download
|
||||
4. Open a terminal and execute `go version`, it should output the go1.9rc1 version, i.e:
|
||||
```sh
|
||||
C:\Users\hiveminded>go version
|
||||
go version go1.9beta2 windows/amd64
|
||||
C:\Users\kataras>go version
|
||||
go version go1.9rc1 windows/amd64
|
||||
```
|
||||
|
||||
</details>
|
||||
|
@ -367,12 +359,24 @@ Testers should upgrade immediately, if you're willing to use _iris_ in productio
|
|||
|
||||
Previous versions can be found at [releases page](https://github.com/kataras/iris/releases).
|
||||
|
||||
### 😃 Get Hired
|
||||
|
||||
Below you'll find a list of open positions that require at least **experience with the Iris web framework**.
|
||||
|
||||
| Company | Position | Job Details |
|
||||
| -----------|--------|-------------|
|
||||
| Kudo, an Indonesian startup technology company | Application Programming Interface Developer | Navigate to: https://glints.id/opportunities/jobs/5553 |
|
||||
|
||||
Employers that are looking for briliant Software Engineers with good experience on Go Programming Language and Iris can put their startup's or company's name here or, if privacy is the key, [contact with us](mailto:kataras2006@hotmail.com?subject=Employer%20That%20Hires%20Smart%20Devs) to suggest some good and well-tested freelancers that suits your needs.
|
||||
|
||||
### 🥇 People
|
||||
|
||||
The original author of _iris_ is [Gerasimos Maropoulos](https://github.com/kataras)
|
||||
The original author of _iris_ is [Gerasimos Maropoulos](https://medium.com/@kataras)
|
||||
|
||||
The current lead maintainer is [Bill Qeras, Jr.](https://github.com/hiveminded)
|
||||
|
||||
[List of all contributors](https://github.com/kataras/iris/graphs/contributors)
|
||||
|
||||
Help this project to continue deliver awesome and unique features with the higher code quality as possible
|
||||
|
||||
[![](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kataras2006%40hotmail%2ecom&lc=GR&item_name=Iris%20web%20framework&item_number=iriswebframeworkdonationid2016¤cy_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted)
|
|
@ -5,10 +5,18 @@ package main
|
|||
import (
|
||||
"github.com/kataras/iris"
|
||||
"github.com/kataras/iris/context"
|
||||
"github.com/kataras/iris/middleware/logger"
|
||||
"github.com/kataras/iris/middleware/recover"
|
||||
)
|
||||
|
||||
func main() {
|
||||
app := iris.Default()
|
||||
app := iris.New()
|
||||
|
||||
// Optionally, add two built'n handlers
|
||||
// that can recover from any http-relative panics
|
||||
// and log the requests to the terminal.
|
||||
app.Use(recover.New())
|
||||
app.Use(logger.New())
|
||||
|
||||
// Method: GET
|
||||
// Resource: http://localhost:8080/
|
||||
|
@ -32,5 +40,5 @@ func main() {
|
|||
// http://localhost:8080
|
||||
// http://localhost:8080/ping
|
||||
// http://localhost:8080/hello
|
||||
app.Run(iris.Addr(":8080"))
|
||||
app.Run(iris.Addr(":8080"), iris.WithoutServerError(iris.ErrServerClosed))
|
||||
}
|
||||
|
|
|
@ -6,7 +6,16 @@ import (
|
|||
"github.com/kataras/iris"
|
||||
)
|
||||
|
||||
// Same as `main.go` for go1.8+ but it omits the
|
||||
// `github.com/kataras/iris/context` import path
|
||||
// because of the type alias feature of go 1.9.
|
||||
|
||||
func main() {
|
||||
// The `iris#Default` adds two built'n handlers
|
||||
// that can recover from any http-relative panics
|
||||
// and log the requests to the terminal.
|
||||
//
|
||||
// Use `iris#New` instead.
|
||||
app := iris.Default()
|
||||
|
||||
// Method: GET
|
||||
|
|
|
@ -30,11 +30,11 @@ type Config struct {
|
|||
// Defaults to true.
|
||||
Path bool
|
||||
|
||||
// Columns will display the logs as well formatted columns (bool).
|
||||
// Columns will display the logs as a formatted columns-rows text (bool).
|
||||
// If custom `LogFunc` has been provided then this field is useless and users should
|
||||
// use the `Columinize` function of the logger to get the output result as columns.
|
||||
//
|
||||
// Defaults to true.
|
||||
// Defaults to false.
|
||||
Columns bool
|
||||
|
||||
// MessageContextKey if not empty,
|
||||
|
@ -61,7 +61,7 @@ type Config struct {
|
|||
}
|
||||
|
||||
// DefaultConfig returns a default config
|
||||
// that have all boolean fields to true,
|
||||
// that have all boolean fields to true except `Columns`,
|
||||
// all strings are empty,
|
||||
// LogFunc and Skippers to nil as well.
|
||||
func DefaultConfig() Config {
|
||||
|
@ -70,7 +70,7 @@ func DefaultConfig() Config {
|
|||
IP: true,
|
||||
Method: true,
|
||||
Path: true,
|
||||
Columns: true,
|
||||
Columns: false,
|
||||
MessageContextKey: "",
|
||||
LogFunc: nil,
|
||||
Skippers: nil,
|
||||
|
|
Loading…
Reference in New Issue
Block a user