http

package
v0.0.0-...-a9dd071 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2015 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(w http.ResponseWriter, file string, data map[string]interface{})

解析模板

func RenderErrorJson

func RenderErrorJson(w http.ResponseWriter, msg string)

func RenderJson

func RenderJson(w http.ResponseWriter, v interface{})

func RenderOKJson

func RenderOKJson(w http.ResponseWriter, data interface{})

func Start

func Start()

Types

type JsonResult

type JsonResult struct {
	Code    int         `json:"code"`
	Data    interface{} `json:"data"`
	Message string      `json:"message"`
}

Jump to

Keyboard shortcuts

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