You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Gerasimos Maropoulos 8e9deec4ab Add one more browser (and 304 server) cache method using ETag and If-None-Match headers 4 years ago
.github README.md: make backers visible on the top of the page, replaced the prev api to the https://iris-go.com/backers.svg in order this to happens 4 years ago
_benchmarks fix _benchmarks/iris-mvc-templates 4 years ago
_examples add some tests for the content type for the embedding files and gziped embedded files 4 years ago
cache Add one more browser (and 304 server) cache method using ETag and If-None-Match headers 4 years ago
context Add one more browser (and 304 server) cache method using ETag and If-None-Match headers 4 years ago
core Add one more browser (and 304 server) cache method using ETag and If-None-Match headers 4 years ago
hero add vscode extension link and badge | Some internal improvements (not completed yet) 4 years ago
httptest add vscode extension link and badge | Some internal improvements (not completed yet) 4 years ago
middleware fix https://github.com/kataras/iris/issues/879 by @martinnagelberg 4 years ago
mvc remove the complicated fallback handlers, that didn't work and not approve the coblexity addition of the https://github.com/kataras/iris/pull/919, RouteExists accepts first argument the Context, add new AllowMethods per party and fix cors by https://github.com/iris-contrib/middleware/commit/048e2be034ed172c6754448b8a54a9c55debad46 https://github.com/kataras/iris/issues/922, rel: https://github.com/iris-contrib/middleware/issues/36, https://github.com/iris-contrib/middleware/issues/34, https://github.com/iris-contrib/middleware/issues/32, https://github.com/iris-contrib/middleware/issues/30, https://github.com/kataras/iris/pull/909 4 years ago
sessions fix https://github.com/kataras/iris/issues/921 4 years ago
typescript add a code snippet as a very simplistic overview and update the license dates from 2017 to 2017-2018 4 years ago
view fix https://github.com/kataras/iris/issues/921 4 years ago
websocket Handle non-WS connections in WS handler with no panic 4 years ago
.gitattributes ok the new mvc system works great, all tests done and almost x3 smaller LOC used plus new three awesome features:) - next commit will be commenting out and replace the mvc package with the new mvc2 4 years ago
.gitignore app. SPA from router wrapper to a simple handler, works faster now. Iris' router respects wildcards with other paths as well (unique) for almost a half year now... so we don't need a whole wrapper for those things anymore, fixes https://github.com/kataras/iris/issues/807 4 years ago
.travis.yml Cleanup of some old code 4 years ago
AUTHORS Update to version 8.5.5 | Read HISTORY.md 4 years ago
CODE_OF_CONDUCT.md Update to version 8.5.5 | Read HISTORY.md 4 years ago
CONTRIBUTING.md README.md: make backers visible on the top of the page, replaced the prev api to the https://iris-go.com/backers.svg in order this to happens 4 years ago
Dockerfile Update to version 8.5.5 | Read HISTORY.md 4 years ago
Dockerfile.build no need to default the Configuration.RemoteAddrHeaders to a list of 'dissalowed' header names, the `ctx.RemoteAddr()` made unnecessary checks if no X-header was passed, even if they defaulted to false, this will not give a crazy improvement but it's a good practise 4 years ago
FAQ.md add vscode extension link and badge | Some internal improvements (not completed yet) 4 years ago
Gopkg.lock Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
Gopkg.toml update Gopkg.lock and Gopkg.toml 4 years ago
HISTORY.md Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
HISTORY_GR.md Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
HISTORY_ZH.md Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
LICENSE add a code snippet as a very simplistic overview and update the license dates from 2017 to 2017-2018 4 years ago
README.md Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
README_GR.md Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
README_RU.md Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
README_ZH.md Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
VERSION Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
configuration.go add context#StatusCodeNotSuccessful for customize even the most customized clients that are not compatible with the standards and fix the `SPA` if static file serve handlers are passed as its `AssetHandler` as reported at the chat.iris-go.com 4 years ago
configuration_test.go fix https://github.com/kataras/iris/issues/921 4 years ago
deprecated.go remove old deprecated code from previous version, no need to keep backward compatibility, it was two months ago v10.0.0 released so we should be ok now 4 years ago
doc.go Release of version 10.4.0 - x8 faster embedded file server | Star and Read HISTORY.md 4 years ago
go19.go add examples for read using custom decoder per type, read using custom decoder via `iris#UnmarshalerFunc` and to complete it add an example for the `context#ReadXML`. 4 years ago
iris.go new handlers for client (i.e browser) catching: cache.NoCache and cache.StaticCache including tests 4 years ago

README.md

Iris Web Framework

build status report card vscode-iris chat view examples release

Iris is a fast, simple yet fully featured and very efficient web framework for Go.

Iris provides a beautifully expressive and easy to use foundation for your next website or API.

Finally, a real expressjs equivalent for the Go Programming Language.

Learn what others say about Iris and star this github repository to stay up to date.

Backers

Thank you to all our backers! 🙏 Become a backer

$ cat example.go
package main

import "github.com/kataras/iris"

func main() {
    app := iris.New()
    // Load all templates from the "./views" folder
    // where extension is ".html" and parse them
    // using the standard `html/template` package.
    app.RegisterView(iris.HTML("./views", ".html"))

    // Method:    GET
    // Resource:  http://localhost:8080
    app.Get("/", func(ctx iris.Context) {
        // Bind: {{.message}} with "Hello world!"
        ctx.ViewData("message", "Hello world!")
        // Render template file: ./views/hello.html
        ctx.View("hello.html")
    })

    // Method:    GET
    // Resource:  http://localhost:8080/user/42
    //
    // Need to use a custom regexp instead?
    // Easy,
    // just mark the parameter's type to 'string'
    // which accepts anything and make use of
    // its `regexp` macro function, i.e:
    // app.Get("/user/{id:string regexp(^[0-9]+$)}")
    app.Get("/user/{id:long}", func(ctx iris.Context) {
        userID, _ := ctx.Params().GetInt64("id")
        ctx.Writef("User ID: %d", userID)
    })

    // Start the server using a network address.
    app.Run(iris.Addr(":8080"))
}

Learn more about path parameter's types by clicking here

<!-- file: ./views/hello.html -->
<html>
<head>
    <title>Hello Page</title>
</head>
<body>
    <h1>{{.message}}</h1>
</body>
</html>
$ go run example.go
Now listening on: http://localhost:8080
Application Started. Press CTRL+C to shut down.
_

Installation

The only requirement is the Go Programming Language

$ go get -u github.com/kataras/iris

Iris takes advantage of the vendor directory feature. You get truly reproducible builds, as this method guards against upstream renames and deletes.

Iris vs .NET Core(C#) vs Node.js (Express)

Updated at: Tuesday, 21 November 2017

Benchmarks from third-party source over the rest web frameworks

Comparison with other frameworks

Support

  • HISTORY file is your best friend, it contains information about the latest features and changes
  • Did you happen to find a bug? Post it at github issues
  • Do you have any questions or need to speak with someone experienced to solve a problem at real-time? Join us to the community chat
  • Complete our form-based user experience report by clicking here
  • Do you like the framework? Tweet something about it! The People have spoken:



For more information about contributing to the Iris project please check the CONTRIBUTING.md file.

List of all Contributors

Learn

First of all, the most correct way to begin with a web framework is to learn the basics of the programming language and the standard http capabilities, if your web application is a very simple personal project without performance and maintainability requirements you may want to proceed just with the standard packages. After that follow the guidelines:

  • Navigate through 100+1 examples and some iris starter kits we crafted for you
  • Read the godocs for any details
  • Prepare a cup of coffee or tea, whatever pleases you the most, and read some articles we found for you

Iris starter kits

  1. A basic web app built in Iris for Go
  2. A mini social-network created with the awesome Iris💖💖
  3. Iris isomorphic react/hot reloadable/redux/css-modules starter kit
  4. Demo project with react using typescript and Iris
  5. Self-hosted Localization Management Platform built with Iris and Angular
  6. Iris + Docker and Kubernetes
  7. Quickstart for Iris with Nanobox
  8. A Hasura starter project with a ready to deploy Golang hello-world web app with IRIS

Did you build something similar? Let us know!

Middleware

Iris has a great collection of handlers[1][2] that you can use side by side with your web apps. However you are not limited to them - you are free to use any third-party middleware that is compatible with the net/http package, _examples/convert-handlers will show you the way.

Iris, unlike others, is 100% compatible with the standards and that's why the majority of the big companies that adapt Go to their workflow, like a very famous US Television Network, trust Iris; it's up-to-date and it will be always aligned with the std net/http package which is modernized by the Go Authors on each new release of the Go Programming Language.

Articles

Get hired

There are many companies and start-ups looking for Go web developers with Iris experience as requirement, we are searching for you every day and we post those information via our facebook page, like the page to get notified, we have already posted some of them.

Sponsors

Thank you to all our sponsors! (please ask your company to also support this open source project by becoming a sponsor)

License

Iris is licensed under the 3-Clause BSD License. Iris is 100% free and open-source software.

For any questions regarding the license please send e-mail.