kubernetes.v0: gopkg.in/kubernetes/kubernetes.v0/pkg/util/slice Index | Files

package slice

import "gopkg.in/kubernetes/kubernetes.v0/pkg/util/slice"

Package slice provides utility methods for common operations on slices.

Index

Package Files

slice.go

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 2016-07-25. Refresh now. Tools for package owners.