This repository contains small and practical examples for the Iris Web Framework.
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.
To read the Iris documentation please navigate to the documentation instead.
Examples are tested using Windows 11, Ubuntu 23.04 LTS, macOS 14 Sonoma with Microsoft's Visual Studio Code and built using the Go 1.21.6.
yield
and render
tmpl funcs
urlpath
template func
url
template func
io.Writer
Actions
Includes
$GOPATH/src/github.com/iris-contrib/examples
go get -u github.com/kataras/iris/[email protected]
To run an example, open a terminal session and execute:
$ cd $GOPATH/src/github.com/iris-contrib/examples/compression
$ go mod init
$ go run main.go
Do not forget to star or watch the Iris project.
https://github.com/iris-contrib/examples/issues