util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const MIN = 0.000001

Variables

This section is empty.

Functions

func Get

func Get(bigKey string, smallKey string) (value string, result bool)

func IsEqual

func IsEqual(x, y float64) bool

IsEqual 判断 float 是否相等

func PostFile

func PostFile(reqUrl string, reqParams map[string]string, files []UploadFile, headers map[string]string) string

func PostForm

func PostForm(reqUrl string, reqParams map[string]string, headers map[string]string) string

func PostJson

func PostJson(reqUrl string, reqParams map[string]string, headers map[string]string) string

func Set

func Set(bigKey string, smallKey string, value string, expire int)

Types

type UploadFile

type UploadFile struct {
	// 表单名称
	Name string
	// 文件全路径
	Filepath string
}

Jump to

Keyboard shortcuts

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