slice

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendInt

func AppendInt(slice []int, index int, val int) []int

Append an item by index

func AppendInterFace

func AppendInterFace(slice []interface{}, index int, val interface{}) []interface{}

Append an item by index

func DifferenceString

func DifferenceString(a, b []string) []string

字符串切片差集

func Find

func Find(slice []interface{}, val interface{}) int

Find item

func RemoveInt

func RemoveInt(slice []int, index int) []int

Remove slice item by index []int

func RemoveInterface

func RemoveInterface(slice []interface{}, index int) []interface{}

Remove slice item by index []interface

func SortRandomly

func SortRandomly(slice []interface{}) []interface{}

Sort slices randomly []interface{}

func SortRandomlyInt

func SortRandomlyInt(slice []int) []int

Sort slices randomly []int

func SortRandomlyString

func SortRandomlyString(slice []string) []string

Sort slices randomly []string

func ToString

func ToString(slice []interface{}, sep string) string

To String

func ToStringItems

func ToStringItems(slice []interface{}) []string

To String Items

Types

This section is empty.

Jump to

Keyboard shortcuts

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