zhangwuzheng / examples

This repository contains small and practical examples for the Iris Web Framework.

Home Page:https://iris-go.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Examples

Build Status License CHANGELOG/HISTORY

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 11, Ubuntu 22.04 LTS, macOS 12 Monterey with Microsoft's Visual Studio Code and built using the Go 1.19.3.

Table of Contents

Run

  1. Install the Go Programming Language, version 1.18+ from here.
  2. Download the examples and copy-paste them to your $GOPATH/src/github.com/iris-contrib/examples
  3. Install Iris with go get -u github.com/kataras/iris/v12@v12.2.0-beta6

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.

Any troubles with examples?

https://github.com/iris-contrib/examples/issues

About

This repository contains small and practical examples for the Iris Web Framework.

https://iris-go.com

License:MIT License


Languages

Language:Go 80.9%Language:JavaScript 10.7%Language:HTML 6.4%Language:CSS 1.7%Language:Dockerfile 0.3%Language:Pug 0.1%Language:Shell 0.0%