strings

package
v0.0.0-...-5d666d8 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 1 Imported by: 21

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

func CopySlice(slice []string) []string

CopySlice returns a copy of the slice.

func EqualSlices

func EqualSlices(slice1, slice2 []string) bool

EqualSlices checks if the slices are equal.

func Include

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

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

func IndexOf

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

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

func ReverseSlice

func ReverseSlice(slice []string) []string

ReverseSlice reverses a string slice.

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