Documentation ¶
Index ¶
- func GetNumbers(amount int, startFrom int) []int
- func GetQueryBool(c *fiber.Ctx, param string, def bool) bool
- func GetQueryInt(c *fiber.Ctx, param string, def int) int
- func GetQueryIntSlice(c *fiber.Ctx, param string, size int) []int
- func GetQueryString(c *fiber.Ctx, param string, def string) string
- func GetRandomBool(chance int) bool
- func GetRandomInteger(min, max int) int
- func IndexOf[T int | string](element T, data []T) int
- func PadStart(str string, count int, padStr string) string
- func ReadFileLineByLine(path string) ([]string, error)
- func RemoveDuplicateStrings(strSlice []string) []string
- func RemoveElement[T any](s []T, i int) []T
- func SliceContains[T int | string](a []T, x T) bool
- func SliceStringToInt(src []string) ([]int, error)
- func ThrowError(c *fiber.Ctx, code int, error string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNumbers ¶
func GetQueryBool ¶
func GetQueryInt ¶
func GetQueryIntSlice ¶
func GetQueryString ¶
func GetRandomBool ¶
func GetRandomInteger ¶
func ReadFileLineByLine ¶
func RemoveDuplicateStrings ¶
func RemoveElement ¶
func SliceContains ¶
func SliceStringToInt ¶
func ThrowError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.