v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-15 23:30:27 -07:00
GTT/utils.go
2022-10-24 23:43:20 +08:00

15 lines
234 B
Go

package main
func IndexOf(candidate string, arr []string) int {
for index, element := range arr {
if element == candidate {
return index
}
}
return -1
}
func SetTermTitle(title string) {
print("\033]0;", title, "\007")
}