This repository provides easy to understand code snippets on how to get started with web development with the Go programming language using the Iris web framework.
It doesn't contains "best ways" neither explains all its features. It's just a simple, practical cookbook for young Gophers!
- Overview
- Listening
- Configuration
- Routing
- Transform any third-party handler to iris-compatible handler
- Internal Application File Logger
- Custom HTTP Errors
- Write JSON
- Read JSON
- Read Form
- Favicon
- File Server
- Send Files
- Stream Writer
- Send An E-mail
- Upload/Read Files
- Recovery
- Profiling (pprof)
- Request Logger
- Basic Authentication
- OAuth2
- Transactions
- HTTP Testing
- Watch & Compile Typescript source files
- Cloud Editor
- HTTP Access Control
- Cache Markdown
- Localization and Internationalization
- Graceful Shutdown
- Custom HTTP Server
- Custom Context
- Route State
- View Engine
- Sessions
- Websockets
- Subdomains
- Online Visitors
- URL Shortener using BoltDB
Do not forget to star or watch the project in order to stay updated with the latest tech trends, it takes some seconds for the sake of go!
Examples are tested using Windows 7, Ubuntu 16.04 with LiteIDE.
$ cd $GOPATH/src/github.com/iris-contrib/examples/overview
$ go run main.go
- Iris version 6/http2 examples, click here.
- Iris version 5/fasthttp examples, click here.
- Iris version 4/fasthttp examples, click here.
This repository is just a minor of the github.com/kataras/iris/[version or master]/_examples folder.