demo

package
v0.0.0-...-3f42f3c Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexController

type IndexController struct {
	Ctx          iris.Context
	ServiceADemo services.ADemoService
}

func (*IndexController) Get

func (c *IndexController) Get() string

Get http://localhost:8080/demo 返回html页面

func (*IndexController) GetBoom

func (c *IndexController) GetBoom()

Get http://localhost:8080/demo/boom 返回错误页面

func (*IndexController) GetInfo

func (c *IndexController) GetInfo() map[string]interface{}

Get http://localhost:8080/demo/info 返回json数据

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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