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 contain "best ways" neither explains all its features. It's just a simple, practical cookbook for young Gophers!
- Overview
- Structuring
- HTTP Listening
- Configuration
- Routing
- Hero
- MVC
- Hello world UPDATED
- Session Controller UPDATED
- Overview - Plus Repository and Service layers UPDATED
- Login showcase - Plus Repository and Service layers UPDATED
- Singleton NEW
- Websocket Controller NEW
- Vue.js Todo MVC NEW
- Custom Context
- Convert http.Handler
- Subdomains
- View
- Authentication
- File Server
- Single Page Applications
- How to Read from *http.Request`
- How to Write to http.ResponseWriter
- Miscellaneous
- Sessions
- Websockets
- Experimental Handlers
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 10, Ubuntu 16.10 with Microsoft's Visual Studio Code and built using the Go 1.9.
- Install the Go Programming Language, version 1.9 from here.
- Install Iris:
go get -u github.com/kataras/iris
- 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/overview
$ go run main.go
https://github.com/iris-contrib/examples/issues
This repository is just a minor of the https://github.com/kataras/iris/master/_examples folder.