controller

package
v0.0.0-...-1ad59f7 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error404

func Error404(w http.ResponseWriter, r *http.Request)

Error404 handles 404 - Page Not Found

func Error500

func Error500(w http.ResponseWriter, r *http.Request)

Error500 handles 500 - Internal Server Error

func FormPOST

func FormPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

FormPOST

func IndexGET

func IndexGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

IndexGET displays the home page

Types

type FormData

type FormData struct {
	Email   string
	Message string
}

type Index

type Index struct {
	Title string
}

Jump to

Keyboard shortcuts

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