1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-22 11:25:59 +00:00

Publish the new version ✈️ | Look description please!

# FAQ

### Looking for free support?

	http://support.iris-go.com
    https://kataras.rocket.chat/channel/iris

### Looking for previous versions?

    https://github.com/kataras/iris#version

### Should I upgrade my Iris?

Developers are not forced to upgrade if they don't really need it. Upgrade whenever you feel ready.
> Iris uses the [vendor directory](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo) feature, so you get truly reproducible builds, as this method guards against upstream renames and deletes.

**How to upgrade**: Open your command-line and execute this command: `go get -u github.com/kataras/iris`.
For further installation support, please click [here](http://support.iris-go.com/d/16-how-to-install-iris-web-framework).

### About our new home page
    http://iris-go.com

Thanks to [Santosh Anand](https://github.com/santoshanand) the http://iris-go.com has been upgraded and it's really awesome!

[Santosh](https://github.com/santoshanand) is a freelancer, he has a great knowledge of nodejs and express js, Android, iOS, React Native, Vue.js etc, if you need a developer to find or create a solution for your problem or task, please contact with him.

The amount of the next two or three donations you'll send they will be immediately transferred to his own account balance, so be generous please!

Read more at https://github.com/kataras/iris/blob/master/HISTORY.md


Former-commit-id: eec2d71bbe011d6b48d2526eb25919e36e5ad94e
This commit is contained in:
kataras
2017-06-03 23:22:52 +03:00
parent 03bcadadec
commit 5e4b63acb2
330 changed files with 35786 additions and 17316 deletions

View File

@@ -1,18 +1,34 @@
# Examples
This folder provides easy to understand code snippets on how to get started with web development with the Go programming language using the [Iris](https://github.com/kataras/iris) web framework.
This folder provides easy to understand code snippets on how to get started with web development with the Go programming language using the [Iris](https://github.com/kataras/iris) web framework.
It doesn't contains "best ways" neither explains all its features. It's just a simple, practical cookbook for young Go developers!
It doesn't contains "best ways" neither explains all its features. It's just a simple, practical cookbook for young Gophers!
## Table of Contents
<!-- when the new book will be ready I should add the link here -->
<img align="right" src="http://iris-go.com/assets/book/cover_4.jpg" width="300" />
## Table of contents
* [Level: Beginner](beginner)
* [Hello World](beginner/hello-world/main.go)
* [Routes (using httprouter)](beginner/routes-using-httprouter/main.go)
* [Routes (using gorillamux)](beginner/routes-using-gorillamux/main.go)
* [Overview](beginner/overview/main.go)
* [Listening](beginner/listening)
* [Common, with address](beginner/listening/listen-addr/main.go)
* [UNIX socket file](beginner/listening/listen-unix/main.go)
* [TLS](beginner/listening/listen-tls)
* [Letsencrypt (Automatic Certifications)](beginner/listening/listen-letsencrypt/main.go)
* [Custom TCP Listener](beginner/listening/custom-listener/main.go)
* [Configuration](beginner/configuration)
* [Basic way](beginner/configuration/basic/main.go)
* [Functional way](beginner/configuration/functional/main.go)
* [Import from YAML file](beginner/configuration/from-yaml-file/main.go)
* [Import from TOML file](beginner/configuration/from-toml-file/main.go)
* [Routing](beginner/routing)
* [Overview](beginner/routing/main.go)
* [Basic](beginner/routing/basic/main.go)
* [Dynamic Path](beginner/routing/dynamic-path/main.go)
* [Reverse routing](beginner/routing/reverse/main.go)
* [Transform any third-party handler to iris-compatible handler](beginner/convert-handlers)
* [From func(http.ResponseWriter, *http.Request, http.HandlerFunc)](beginner/convert-handlers/negroni-like/main.go)
* [From http.Handler or http.HandlerFunc](beginner/convert-handlers/nethttp/main.go)
* [Internal Application File Logger](beginner/file-logger/main.go)
* [Custom HTTP Errors](beginner/http-errors/main.go)
* [Write JSON](beginner/write-json/main.go)
* [Read JSON](beginner/read-json/main.go)
* [Read Form](beginner/read-form/main.go)
@@ -20,38 +36,46 @@ It doesn't contains "best ways" neither explains all its features. It's just a s
* [File Server](beginner/file-server/main.go)
* [Send Files](beginner/send-files/main.go)
* [Stream Writer](beginner/stream-writer/main.go)
* [Listen UNIX Socket](beginner/listen-unix/main.go)
* [Listen TLS](beginner/listen-tls/main.go)
* [Listen Letsencrypt (Automatic Certifications)](beginner/listen-letsencrypt/main.go)
* [Send An E-mail](beginner/e-mail/main.go)
* [Upload/Read Files](beginner/upload-files/main.go)
* [Recovery](beginner/recover/main.go)
* [Profiling (pprof)](beginner/pprof/main.go)
* [Request Logger](beginner/request-logger/main.go)
* [Basic Authentication](beginner/basicauth/main.go)
* [Level: Intermediate](intermediate)
* [Send An E-mail](intermediate/e-mail/main.go)
* [Upload/Read Files](intermediate/upload-files/main.go)
* [Request Logger](intermediate/request-logger/main.go)
* [Profiling (pprof)](intermediate/pprof/main.go)
* [Basic Authentication](intermediate/basicauth/main.go)
* [Transactions](intermediate/transactions/main.go)
* [HTTP Testing](intermediate/httptest/main_test.go)
* [Watch & Compile Typescript source files](intermediate/typescript/main.go)
* [Cloud Editor](intermediate/cloud-editor/main.go)
* [Serve Embedded Files](intermediate/serve-embedded-files/main.go)
* [HTTP Access Control](intermediate/cors/main.go)
* [Cache Markdown](intermediate/cache-markdown/main.go)
* [Localization and Internationalization](intermediate/i18n/main.go)
* [Recovery](intermediate/recover/main.go)
* [Graceful Shutdown](intermediate/graceful-shutdown/main.go)
* [Custom TCP Listener](intermediate/custom-listener/main.go)
* [Custom HTTP Server](intermediate/custom-httpserver/main.go)
* [Graceful Shutdown](intermediate/graceful-shutdown)
* [Basic and simple](intermediate/graceful-shutdown/basic/main.go)
* [Custom Host](intermediate/graceful-shutdown/custom-host/main.go)
* [Custom HTTP Server](intermediate/custom-httpserver)
* [Iris way](intermediate/custom-httpserver/iris-way/main.go)
* [Standar way](intermediate/custom-httpserver/std-way/main.go)
* [More than one server](intermediate/custom-httpserver/multi/main.go)
* [Custom Context](intermediate/custom-context)
* [Method Overriding](intermediate/custom-context/method-overriding/main.go)
* [Route State](intermediate/route-state/main.go)
* [View Engine](intermediate/view)
* [Overview](intermediate/view/overview/main.go)
* [Template HTML: Part Zero](intermediate/view/template_html_0/main.go)
* [Template HTML: Part One](intermediate/view/template_html_1/main.go)
* [Template HTML: Part Two](intermediate/view/template_html_2/main.go)
* [Template HTML: Part Three](intermediate/view/template_html_3/main.go)
* [Template HTML: Part Four](intermediate/view/template_html_4/main.go)
* [Hi](intermediate/view/template_html_0/main.go)
* [Showcase one simple Layout](intermediate/view/template_html_1/main.go)
* [Layouts `yield` and `render` tmpl funcs](intermediate/view/template_html_2/main.go)
* [Showcase of the `urlpath` tmpl func](intermediate/view/template_html_3/main.go)
* [Showcase of the `url` tmpl func](intermediate/view/template_html_4/main.go)
* [Inject Data Between Handlers](intermediate/view/context-view-data/main.go)
* [Embedding Templates Into Executable](intermediate/view/embedding-templates-into-app)
* [Custom Renderer](intermediate/view/custom-renderer/main.go)
* [Password Hashing](intermediate/password-hashing/main.go)
* [Embedding Templates Into App Executable File](intermediate/view/embedding-templates-into-app)
* [Sessions](intermediate/sessions)
* [Overview](intermediate/sessions/overview/main.go)
* [Encoding & Decoding the Session ID: Secure Cookie](intermediate/sessions/securecookie/main.go)
* [Standalone](intermediate/sessions/standalone/main.go)
* [With A Back-End Database](intermediate/sessions/database/main.go)
* [Password Hashing](intermediate/sessions/password-hashing/main.go)
* [Flash Messages](intermediate/flash-messages/main.go)
* [Websockets](intermediate/websockets)
* [Ridiculous Simple](intermediate/websockets/ridiculous-simple/main.go)
@@ -60,20 +84,14 @@ It doesn't contains "best ways" neither explains all its features. It's just a s
* [Native Messages](intermediate/websockets/naive-messages/main.go)
* [Secure](intermediate/websockets/secure/main.go)
* [Custom Go Client](intermediate/websockets/custom-go-client/main.go)
* [Subdomains](intermediate/subdomains)
* [Single](intermediate/subdomains/single/main.go)
* [Multi](intermediate/subdomains/multi/main.go)
* [Wildcard](intermediate/subdomains/wildcard/main.go)
* [Level: Advanced](advanced)
* [Transactions](advanced/transactions/main.go)
* [HTTP Testing](advanced/httptest/main_test.go)
* [Watch & Compile Typescript source files](advanced/typescript/main.go)
* [Cloud Editor](advanced/cloud-editor/main.go)
* [Online Visitors](advanced/online-visitors/main.go)
* [URL Shortener using BoltDB](advanced/url-shortener/main.go)
* [Subdomains](advanced/subdomains)
* [Single](advanced/subdomains/single/main.go)
* [Multi](advanced/subdomains/multi/main.go)
* [Wildcard](advanced/subdomains/wildcard/main.go)
> Do not forget to [star or watch the project](https://github.com/kataras/iris/stargazers) in order to stay updated with the latest tech trends, it takes some seconds for the sake of go!
> Don't forget to take a quick look or add your own [examples in the community's repository](https://github.com/iris-contrib/examples)!
> Developers should read the official [documentation](https://godoc.org/gopkg.in/kataras/iris.v6), in depth, for better understanding.
> Developers should read the official [documentation](https://godoc.org/github.com/kataras/iris) in depth, for deep understanding.