v/GTT
1
0
mirror of https://github.com/eeeXun/GTT.git synced 2025-05-16 15:50:52 -07:00
GTT/utils.go
2022-10-22 23:34:30 +08:00

15 lines
236 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")
}