utils

package
v0.19.3 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInSlice

func IsInSlice(slice []string, match string) bool

IsInSlice checks if a string is in a slice

func RemoveDuplicateFromSlice added in v0.19.2

func RemoveDuplicateFromSlice[T string | int](sliceList []T) []T

RemoveDuplicateFromSlice removes duplicate values from a slice

func ToPointer added in v0.19.2

func ToPointer[T any](t T) *T

ToPointer returns a pointer to the given value

func ToValue added in v0.19.2

func ToValue[T any](t *T) T

ToValue returns the value pointed by the given pointer

func UpperFirstLetter added in v0.9.0

func UpperFirstLetter(str string) string

UpperFirstLetter returns the given string with the first letter in uppercase

Types

This section is empty.

Jump to

Keyboard shortcuts

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