Documentation
¶
Overview ¶
Package util contains general helper functions.
Index ¶
- func Difference(list []string, set map[string]struct{}) []string
- func DownloadImageData(url string) (string, []byte, error)
- func Intersection(list []string, set map[string]struct{}) []string
- func ListKeys[T any](m map[string]T) []string
- func MinInt(nums []int) int
- func ToSet(list []string) map[string]struct{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
Difference returns the elements in list that are not in set.
func DownloadImageData ¶
downloadImageData downloads the content from the given URL and returns the image type and data. The image type is the second part of the response's MIME (e.g. "png" from "image/png").
func Intersection ¶
Intersection returns the elements in list that are in set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.