my_slice

package
v0.0.0-...-708d9d6 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2022 License: MIT Imports: 1 Imported by: 0

README

golang 切片

1 初始化测试

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendAddress

func AppendAddress(ls []AppendAddressStrut) []interface{}

AppendAddress 追加地址

func MatchingSlices

func MatchingSlices(old, new []string) ([]string, []string)

MatchingSlices 判断新旧两个数组元素的差异

func MySlices

func MySlices() ([]string, []string)

func MySlices2

func MySlices2(sl []string)

func StringSliceIn

func StringSliceIn(m string, s []string) bool

StringSliceIn 判断传入字符串是否存在数组里面

Types

type AppendAddressStrut

type AppendAddressStrut struct {
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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