utils

package
v0.0.0-...-385cc76 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

http utils

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PostJson

func PostJson(url string, datas interface{}) error

Post请求 @addr:目标的url @datas:请求数据

func PostJsonGzip

func PostJsonGzip(url string, datas interface{}) error

Post请求 带GZIP压缩 @addr:目标的url @datas:请求数据

Types

type ResponseCommon

type ResponseCommon struct {
	Errcode string `json:"errcode"`
}

common response

Jump to

Keyboard shortcuts

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