shared

package
v1.0.0-prealpha.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanURL

func CleanURL(link string) (string, error)

func FetchContent

func FetchContent(link string) (content []byte, err error)

Types

type Smap

type Smap[K comparable, V any] sync.Map

func (*Smap[K, V]) Delete

func (s *Smap[K, V]) Delete(key K)

func (*Smap[K, V]) Load

func (s *Smap[K, V]) Load(key K) (V, bool)

func (*Smap[K, V]) Range

func (s *Smap[K, V]) Range(fn func(K, V) bool)

func (*Smap[K, V]) Store

func (s *Smap[K, V]) Store(key K, val V)

Jump to

Keyboard shortcuts

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