util

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultHttpClient

func DefaultHttpClient() *http.Client

func ExtractLinksFromString

func ExtractLinksFromString(input string) []string

func IsValidUrl

func IsValidUrl(link string) bool

Types

type Slice

type Slice[T any] struct {
	// contains filtered or unexported fields
}

func NewSlice

func NewSlice[T any]() *Slice[T]

func NewSliceWithLength

func NewSliceWithLength[T any](length int) *Slice[T]

func (*Slice[T]) Add

func (s *Slice[T]) Add(item T)

func (*Slice[T]) AddMany

func (s *Slice[T]) AddMany(items []T)

func (*Slice[T]) AddToIndex

func (s *Slice[T]) AddToIndex(index int, item T)

func (*Slice[T]) GetAll

func (s *Slice[T]) GetAll() []T

func (*Slice[T]) Len

func (s *Slice[T]) Len() int

Jump to

Keyboard shortcuts

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