stringsn

package
v0.0.0-...-0adad2b Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfNotPresent

func AppendIfNotPresent(strs []string, in string) []string

func Contains

func Contains(haystack []string, needle string) bool

func ContainsOrIsEmpty

func ContainsOrIsEmpty(haystack []string, needle string) bool

ContainsOrIsEmpty return true if haystack contains no items or contains needle. Otherwise it returns false.

func Distinct

func Distinct(strs ...string) []string

func Truncate

func Truncate(s string, n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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