YTSFlix_Go/vendor/github.com/rylio/ytdl/utils.go

14 lines
238 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package ytdl
import "fmt"
func reverseStringSlice(s []string) {
for i, j := 0, len(s)-1; i < len(s)/2; i, j = i+1, j-1 {
s[i], s[j] = s[j], s[i]
}
}
func interfaceToString(val interface{}) string {
return fmt.Sprintf("%v", val)
}