_examples/

directory
v6.0.0-...-03bcada Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2017 License: MIT

README

Examples

This folder 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 Go developers!

Table of Contents

Don't forget to take a quick look or add your own examples in the community's repository!

Developers should read the official documentation, in depth, for better understanding.

Directories

Path Synopsis
advanced
subdomains/single
Package main register static subdomains, simple as parties, check ./hosts if you use windows
Package main register static subdomains, simple as parties, check ./hosts if you use windows
subdomains/wildcard
Package main an example on how to catch dynamic subdomains - wildcard.
Package main an example on how to catch dynamic subdomains - wildcard.
url-shortener
Package main shows how you can create a simple URL SHortener using only Iris and BoltDB.
Package main shows how you can create a simple URL SHortener using only Iris and BoltDB.
beginner
listen-letsencrypt
Package main provide one-line integration with letsencrypt.org
Package main provide one-line integration with letsencrypt.org
read-form
package main contains an example on how to use the ReadForm, but with the same way you can do the ReadJSON & ReadJSON
package main contains an example on how to use the ReadForm, but with the same way you can do the ReadJSON & ReadJSON
intermediate
view/context-view-data
this example will show you how you can set per-request data for a template outside of the main handler which calls the .Render, via middleware.
this example will show you how you can set per-request data for a template outside of the main handler which calls the .Render, via middleware.
view/embedding-templates-into-app
NOTE: execute your own look main.go
NOTE: execute your own look main.go
view/template_html_3
Package main an example on how to naming your routes & use the custom 'url' HTML Template Engine, same for other template engines.
Package main an example on how to naming your routes & use the custom 'url' HTML Template Engine, same for other template engines.
view/template_html_4
Package main an example on how to naming your routes & use the custom 'url' HTML Template Engine, same for other template engines.
Package main an example on how to naming your routes & use the custom 'url' HTML Template Engine, same for other template engines.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL