strings

package
v0.0.0-...-bce9a52 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(s string) string

Copy returns a copy of string in a new pointer.

func CopySlice deprecated

func CopySlice(slice []string) []string

CopySlice returns a copy of the slice.

Deprecated: Use slices.Clone instead, it will be removed in the future.

func EqualSlices deprecated

func EqualSlices(s1, s2 []string) bool

EqualSlices checks if the slices are equal.

Deprecated: Use slices.Equal instead, it will be removed in the future.

func Include deprecated

func Include(s []string, v string) bool

Include returns true or false if given string is in slice.

Deprecated: Use slices.Contains instead, it will be removed in the future.

func IndexOf deprecated

func IndexOf(s []string, v string) int

IndexOf returns index position in slice from given string If value is -1, the string does not found.

Deprecated: Use slices.Index instead, it will be removed in the future.

func ReverseSlice deprecated

func ReverseSlice(s []string) []string

ReverseSlice reverses a string slice.

Deprecated: Use slices.Reverse instead, it will be removed in the future.

func UniqueAppend

func UniqueAppend(slice []string, s ...string) []string

UniqueAppend appends a string if not exist in the slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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