common

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2021 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

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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