sliceutil

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Intersection

func Intersection(slice1 []string, slice2 []string) []string

func Reverse

func Reverse(slice []string)

Reverse string slice [site user info 0] -> [0 info user site].

func StringsRemove

func StringsRemove(slice []string, str string) []string

StringsRemove an value form an string slice.

func StringsToInts

func StringsToInts(slice []string) (ints []int, err error)

StringsToInts string slice to int slice.

func ToSet

func ToSet(items []string) (ret []string)

func TrimStrings

func TrimStrings(slice []string, cutSet ...string) (ns []string)

TrimStrings trim string slice item.

Types

This section is empty.

Jump to

Keyboard shortcuts

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