controllers

package
v0.0.0-...-520ab4c Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var T = &Template{
	templates: template.Must(template.ParseGlob("templates/*/*.gohtml")),
}

T var of type Template

Functions

func Create

func Create(c echo.Context) error

Create menu func for testing mongo insert

func GetAll

func GetAll(c echo.Context) error

GetAll func get All Menus

func GetByID

func GetByID(c echo.Context) error

GetByID func get Menu By ID

func Home

func Home(c echo.Context) error

Home func

func Index

func Index(c echo.Context) error

Index func

func NewMenu

func NewMenu(c echo.Context) error

NewMenu func create New Menu

func RemoveMenu

func RemoveMenu(c echo.Context) error

RemoveMenu func remove Menu

Types

type Template

type Template struct {
	// contains filtered or unexported fields
}

Template struct

func (*Template) Render

func (t *Template) Render(w io.Writer, name string, data interface{}, c echo.Context) error

Render func for our Template T

Jump to

Keyboard shortcuts

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