http

package
v0.0.0-...-82c8533 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoRender

func AutoRender(w http.ResponseWriter, data interface{}, err error)

func RenderDataJson

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

func RenderJson

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

func RenderMsgJson

func RenderMsgJson(w http.ResponseWriter, msg string)

func Start

func Start()

Types

type Dto

type Dto struct {
	Msg  string      `json:"msg"`
	Data interface{} `json:"data"`
}

Jump to

Keyboard shortcuts

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