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. This branch contains the latest iris master examples. For the stable's version examples navigate through the v12 branch.
To read the Iris documentation please navigate to the wiki pages instead.
Examples are tested using Windows 10, Ubuntu 20.04 with Microsoft's Visual Studio Code and built using the Go 1.15.0.
- REST API for Apache Kafka
- URL Shortener
- Dropzone.js
- Caddy
- Database
- HTTP Server
- Configuration
- Routing
- Logging
- API Documentation
- Testing
- Recovery
- Profiling
- File Server
- View
- Overview
- Basic
- A simple Layout
- Layouts:
yield
andrender
tmpl funcs - The
urlpath
tmpl func - The
url
tmpl func - Inject Data Between Handlers
- Inject Engine Between Handlers
- Embedding Templates Into App Executable File
- Write to a custom
io.Writer
- Blocks
- Blocks Embedded
- Pug: Greeting
- Pug:
Actions
- Pug:
Includes
- Pug:
Extends
- Jet Template
- Jet Embedded
- Jet 'urlpath' tmpl func
- Jet Template Funcs from Struct
- Request ID
- Request Rate Limit
- Request Referrer
- Webassembly
- Request Body
- Response Writer
- Compression
- Localization and Internationalization
- Authentication, Authorization & Bot Detection
- Cookies
- Sessions
- Websocket
- Dependency Injection
- MVC
- Bootstrapper
- Desktop Applications
- Middlewares (Community)
- Install the Go Programming Language, version 1.5 from here.
- Install Iris:
go get -u github.com/kataras/iris/v12@master
- Download the examples and copy-paste them to your
$GOPATH/src/github.com/iris-contrib/examples
And run
$ cd $GOPATH/src/github.com/iris-contrib/examples/compression
$ go run main.go
Do not forget to star or watch the Iris project.
https://github.com/iris-contrib/examples/issues
This repository is just a mirror of the https://github.com/kataras/iris/master/_examples folder.