Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractVersionFromTag ¶
ExtractVersionFromTag parses a semantic versioning tag string and converts it to a float64 value for comparison purposes. The tag is expected to follow the format 'v<major>.<minor>.<patch>' (e.g., 'v1.2.3'). It returns an error for invalid formats or parsing issues.
func IsAnyNumber ¶
IsAnyNumber checks if the interface{} is any numeric type. Returns the numeric value as float64 (if it is a number) and a bool indicating whether it is a number.
Types ¶
type ConcurrentMap ¶
type ConcurrentMap[T interface{}] struct {
// contains filtered or unexported fields
}
ConcurrentMap is a struct that allows adding keys to a map from multiple goroutines executed in parallel.
func NewConcurrentMap ¶
func NewConcurrentMap[T any]() *ConcurrentMap[T]
NewConcurrentMap initializes a new ConcurrentMap.
func (*ConcurrentMap[T]) Get ¶
func (cm *ConcurrentMap[T]) Get(key string) (T, bool)
Get retrieves a value for a given key from the map.
func (*ConcurrentMap[T]) Set ¶
func (cm *ConcurrentMap[T]) Set(key string, value T)
Set sets a key-value pair in the map.
type SemanticVersion ¶
func ExtractSemanticVersionFromTag ¶
func ExtractSemanticVersionFromTag(tag string) (SemanticVersion, error)
func (SemanticVersion) IsGreaterThan ¶
func (sm SemanticVersion) IsGreaterThan(other SemanticVersion) bool