Documentation ¶
Index ¶
- Constants
- func CheckSemVer(version string) (bool, error)
- func Exclude[T any, V comparable](list []T, subset []V, match func(T, V) bool) []T
- func JsonGetRequest[T interface{}](endpoint string) (T, error)
- func JsonPostRequest[T interface{}](endpoint string, body any) (T, error)
- func PrettyPrint(i interface{})
- func TryFind[T any](arr []T, pred func(pkg T) bool) *T
- func Zero(v interface{}) bool
- type DateTime
Constants ¶
View Source
const DOMAIN = "https://thunderstore.io/"
View Source
const REQ_TIMEOUT = 10 * time.Second
Variables ¶
This section is empty.
Functions ¶
func CheckSemVer ¶ added in v0.4.0
func Exclude ¶ added in v0.6.0
func Exclude[T any, V comparable](list []T, subset []V, match func(T, V) bool) []T
func JsonGetRequest ¶
func JsonPostRequest ¶
func PrettyPrint ¶ added in v0.2.0
func PrettyPrint(i interface{})
Prints the interface to STDOUT in a readable way.
Types ¶
Click to show internal directories.
Click to hide internal directories.