common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Md5

func Md5(str string) string

Md5 签名

func Md5ToUpper

func Md5ToUpper(str string) string

func ToMap added in v1.0.0

func ToMap(request interface{}) map[string]interface{}

结构体转map[string]interface{}

Types

type Service

type Service interface {
	// 执行Get请求
	Get(url string, args interface{}) ([]byte, error)
}

http请求接口

func NewService

func NewService() Service

type ServiceImpl

type ServiceImpl struct {
	// contains filtered or unexported fields
}

http请求默认实现(json传参)

func (*ServiceImpl) Get

func (s *ServiceImpl) Get(address string, v interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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