strutil

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package strutil is common string utils for Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsIgnoreCase

func ContainsIgnoreCase(str1, str2 string) bool

ContainsIgnoreCase check if str1 contains str2 ignoring case sensitivity

func ContainsOnly added in v0.1.35

func ContainsOnly(s string, chars string) bool

ContainsOnly like strings.ContainsAny but does an only instead of any. If all characters in s are found in chars, the function returns true.

func DeDuplicateStr added in v0.1.23

func DeDuplicateStr(s []string) []string

DeDuplicateStr De-Duplicate the given strings.

func EqualsIgnoreCase

func EqualsIgnoreCase(str1, str2 string) bool

EqualsIgnoreCase check if str1 is equal to str2 ignoring case sensitivity

func IsEmpty

func IsEmpty(str string) bool

IsEmpty check if value is empty string or blank string.

func String2Int added in v0.1.28

func String2Int(arr []string) ([]int, error)

String2Int convert string slice to int slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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