arrutil

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2020 License: MIT Imports: 2 Imported by: 60

Documentation

Overview

Package arrutil provides some util functions for array, slice

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reverse

func Reverse(ss []string)

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

func StringsRemove added in v0.1.4

func StringsRemove(ss []string, s string) []string

StringsRemove an value form an string slice

func StringsToInts added in v0.2.2

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

StringsToInts string slice to int slice

func TrimStrings added in v0.2.2

func TrimStrings(ss []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