utils

package
v0.0.0-...-90d9442 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAuthentication

func CheckAuthentication(ctx workflow.InvocationContext) string

func Contains

func Contains(list []string, element string) bool

Contains checks if a given string is in a given list of strings. Returns true if the element was found, false otherwise.

Example:

	list := []string{"a", "b", "c"}
	element := "b"
 contains := Contains(list, element)  // contains is true

func Dedupe

func Dedupe(s []string) []string

Dedupe removes duplicate entries from a given slice. Returns a new, deduplicated slice.

Example:

mySlice := []string{"apple", "banana", "apple", "cherry", "banana", "date"}
dedupedSlice := dedupe(mySlice)
fmt.Println(dedupedSlice) // Output: [apple banana cherry date]

func IsValidUUID

func IsValidUUID(value string) bool

func SemverCompare

func SemverCompare(v1, v2 string) int

SemverCompare compares two semantic version strings.

func WriteToFile

func WriteToFile(filePath, data string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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