http

package
v0.0.0-...-0a4da6c Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2017 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileList

func GetFileList(r *http.Request, name string) []*multipart.FileHeader

*

  • 获取文件列表

func GetPostValue

func GetPostValue(w http.ResponseWriter, r *http.Request, name string, isMust bool) (string, error)

func HttpMail

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

func Output

func Output(w http.ResponseWriter, data interface{}, errCode int, errMsg string) error

func ResultJson

func ResultJson(data interface{}, errCode int, errMsg string) ([]byte, error)

func Start

func Start()

Types

type Result

type Result struct {
	Data      interface{}
	ErrorCode int
	ErrorMsg  string
}

Jump to

Keyboard shortcuts

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