Documentation ¶
Overview ¶
Package sliceclone provides those basic slice cloning methods that I finally got tired of rewriting all the time.
Index ¶
- func Bool(sl []bool) []bool
- func Byte(sl []byte) []byte
- func Float32(sl []float32) []float32
- func Float64(sl []float64) []float64
- func Int(sl []int) []int
- func Int32(sl []int32) []int32
- func Int64(sl []int64) []int64
- func Rune(sl []rune) []rune
- func String(sl []string) []string
- func StringExclude(sl, exclude []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bool ¶
Bool returns a cloned copy of the given bool slice -- returns nil if slice has zero length
func Byte ¶ added in v0.9.11
Byte returns a cloned copy of the given byte slice -- returns nil if slice has zero length
func Float32 ¶
Float32 returns a cloned copy of the given float32 slice -- returns nil if slice has zero length
func Float64 ¶
Float64 returns a cloned copy of the given float64 slice -- returns nil if slice has zero length
func Int32 ¶
Int32 returns a cloned copy of the given int32 slice -- returns nil if slice has zero length
func Int64 ¶
Int64 returns a cloned copy of the given int64 slice -- returns nil if slice has zero length
func Rune ¶ added in v0.9.11
Rune returns a cloned copy of the given rune slice -- returns nil if slice has zero length
func String ¶
String returns a cloned copy of the given string slice -- returns nil if slice has zero length
func StringExclude ¶ added in v1.1.5
StringExclude returns a cloned copy of the given string slice while excluding the list of specific items
Types ¶
This section is empty.