utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append(a []interface{}, b []interface{}) []interface{}

func BaseEncode

func BaseEncode(str string) string

BaseEncode base加密

func Delete

func Delete(i []interface{}, n int32) []interface{}

func DistinctElement

func DistinctElement(arr []string) (newArr []string)

DistinctElement 字符串数组去重

func EncodeMD5

func EncodeMD5(value string) string

EncodeMD5 md5 encryption

func HTTPGet

func HTTPGet(out interface{}, url string, header map[string]string) error

HTTPGet Get请求

func HTTPPost

func HTTPPost(out interface{}, url string, header map[string]string, param string) error

HTTPPost POST请求

func IsBlank

func IsBlank(value reflect.Value) bool

IsBlank 判断空值

func IsExistItem

func IsExistItem(val interface{}, arr interface{}) bool

IsExistItem 判断切片中是否包含某一元素

func JSONUnmarshal

func JSONUnmarshal(jsonStr string, out interface{}) error

JSONUnmarshal json反解析

func Pop

func Pop(i []interface{}) (interface{}, []interface{})

func Push

func Push(i []interface{}, n interface{}) []interface{}

func Shift

func Shift(i []interface{}) (interface{}, []interface{})

func ToInterfaceArr

func ToInterfaceArr(arr interface{}) []interface{}

ToInterfaceArr 对象转 interface切片

Types

type Account

type Account struct {
	accounting.Accounting
}

Jump to

Keyboard shortcuts

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