Documentation ¶
Index ¶
- Constants
- func AsBool(v string) bool
- func CalcArea(X, Z []float64, numPoints uint16, divisor float64) uint
- func CleanString(str string) string
- func Euclidean(x1, z1, x2, z2 float64) float64
- func FloatsToInts(arr []float64) []int
- func FormatTimestamp(unixTs float64) string
- func GetExisting[T EntityAccess](a1 []T, a2 []string) any
- func GetFieldValue(item interface{}, key string) string
- func HexToInt(hex string) int
- func Hypot(num, input, radius int) bool
- func JsonRequest[T interface{}](url string) (T, error)
- func Manhattan(x1, z1, x2, z2 float64) float64
- func OAPIJsonRequest[T interface{}](endpoint string, skipCache bool) (T, error)
- func OAPIRequest(endpoint string, skipCache bool) ([]byte, error)
- func Prettify(i interface{}) string
- func RandomString(length int) string
- func Range(args []float64) int
- func Request(url string) ([]byte, error)
- type Entity
- type EntityAccess
Constants ¶
View Source
const REQ_TIMEOUT = 6 * time.Second
Variables ¶
This section is empty.
Functions ¶
func CleanString ¶
func FloatsToInts ¶
func FormatTimestamp ¶
func GetExisting ¶
func GetExisting[T EntityAccess](a1 []T, a2 []string) any
func GetFieldValue ¶
func JsonRequest ¶
func OAPIJsonRequest ¶
func RandomString ¶
Types ¶
type EntityAccess ¶
type EntityAccess interface {
GetName() string
}
Click to show internal directories.
Click to hide internal directories.