kubernetes: github.com/erimatnor/kubernetes/pkg/util/slice Index | Files

package slice

import "github.com/erimatnor/kubernetes/pkg/util/slice"

Package slice provides utility methods for common operations on slices.


Package Files


func CopyStrings Uses

func CopyStrings(s []string) []string

CopyStrings copies the contents of the specified string slice into a new slice.

func ShuffleStrings Uses

func ShuffleStrings(s []string) []string

ShuffleStrings copies strings from the specified slice into a copy in random order. It returns a new slice.

func SortStrings Uses

func SortStrings(s []string) []string

SortStrings sorts the specified string slice in place. It returns the same slice that was provided in order to facilitate method chaining.

Package slice imports 2 packages (graph). Updated 2017-05-11. Refresh now. Tools for package owners.