utils

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ChatWarsBot = 265204902
View Source
const DeveloperID = 784726544

Variables

This section is empty.

Functions

func CoordsToGoto added in v0.2.0

func CoordsToGoto(input string) string

CoordsToGoto converts a G 3#3 format into g_3_3 format

func DigitToKeycap

func DigitToKeycap(x int) string

Convert digit to keycap emoji (1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣ 9️⃣ 0️⃣)

func FormatDuration

func FormatDuration(d time.Duration) string

func GetEnv

func GetEnv(key string, fallback string) string

func GotoToCoords added in v0.2.0

func GotoToCoords(input string) string

GotoToCoords converts a g_3_3 format into G 3#3 format

func KeycapToDigit

func KeycapToDigit(x string) int

Convert keycap emoji (1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣ 6️⃣ 7️⃣ 8️⃣ 9️⃣ 0️⃣) to digit

func ShortString

func ShortString(s string, n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL