routes

package
v0.0.0-...-69b838a Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2016 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func About

func About(ctx *iris.Context)

About the handler func, we don't use struct here this is the simplest method to declare a route

func Index

func Index() *index

Index index is the page for GET: / route

func Profile

func Profile(ctx *iris.Context)

func UserList

func UserList(ctx *iris.Context)

Types

type Page

type Page struct {
	Title string
	Users []User
}

type User

type User struct {
	Username string
}

Jump to

Keyboard shortcuts

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