Documentation
¶
Index ¶
- Variables
- func ChunkArray[T any](array []T, chunkSize int) [][]T
- func ConvertStringToType(value string) any
- func CreateFile(file string, data any) error
- func DecodeSlug(slug string) string
- func ExportCSV(filePath string, data [][]string) error
- func GetCurrentTimeInMilliseconds() int
- func GetCurrentTimeInSeconds() int
- func Includes(slice any, value any) bool
- func MemoryChecker(interval time.Duration)
- func ProcessString(str string) string
- func ReadFile[T any](file string) (T, error)
- func Remove[T any](slice []T, value T) ([]T, bool)
- func SetTheme()
Constants ¶
This section is empty.
Variables ¶
View Source
var CommandRegex = regexp.MustCompile(`^/{1,2}`)
View Source
var FakePlayerRegex = regexp.MustCompile(`^\*fakeplayer\d+\*$`)
View Source
var MapFileRegex = regexp.MustCompile(`(?i)[.](Map|Challenge).*[.]Gbx$`)
Functions ¶
func ChunkArray ¶
Splits an array into chunks of a specified size
func ConvertStringToType ¶
Converts a string to an appropriate type dynamically
func CreateFile ¶
Create file with data if it doesn't exist
func DecodeSlug ¶
Converts slugified base64 string back to a uuid
func GetCurrentTimeInMilliseconds ¶
func GetCurrentTimeInMilliseconds() int
Rreturns the current time as an integer (milliseconds since the Unix epoch)
func GetCurrentTimeInSeconds ¶
func GetCurrentTimeInSeconds() int
Returns the current time as an integer (seconds since the Unix epoch)
func ProcessString ¶
Processes a string and returns the modified string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.