slice

package
v0.0.0-...-57ed434 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Case2Camel

func Case2Camel(name string) string

func CaseCamelCopy

func CaseCamelCopy(data map[string]interface{}) map[string]interface{}

func CopyUpd

func CopyUpd(data mysql.Upd) mysql.Upd

func InArray

func InArray(val int, list []int) bool

func Int64ArrayDiff

func Int64ArrayDiff(arr1, arr2 []int64) (diffArr []int64)

Int64ArrayDiff 对比,获取在 arr1 中存在,但在 arr2 中不存在的元素集合

func Int64Slice2IfSlice

func Int64Slice2IfSlice(int64Arr []int64) []interface{}

Int64Slice2IfSlice int64 切片转 interface 切片

func Int64ToStringSlice

func Int64ToStringSlice(arr []int64) []string

Int64ToStringSlice int64 转 string 切片

func IsSlice

func IsSlice(arr interface{}) bool

func Lcfirst

func Lcfirst(str string) string

首字母小写

func SliceRemove

func SliceRemove(list *[]interface{}, index int)

切片元素的删除

func StringToInt64Slice

func StringToInt64Slice(arr []string) []int64

Types

type ChangeField

type ChangeField struct {
	Field    string
	OldVaule interface{}
	NewValue interface{}
}

type JsonDiff

type JsonDiff struct {
	HasDiff   bool
	Result    string
	ResultMap []ChangeField
}

func JsonCompare

func JsonCompare(left, right map[string]interface{}) JsonDiff

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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