strings

package
v0.0.0-...-77dcbbd Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package strings provides utility functions for string slices.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contain

func Contain(strings []string, target string) bool

Contain return true if the strings includes at least one target string.

func GenerateRandom

func GenerateRandom(n int) string

GenerateRandom return random string with n length.

func IsUnique

func IsUnique(list []string) bool

IsUnique return true if the elements of input list are unique.

func Unique

func Unique(list []string) []string

Unique removes duplicate elements from the list and return a new slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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