package torrent import ( "fmt" ) func getFileIDs(files []File) []string { var fileIDs []string for _, file := range files { if file.ID != 0 { fileIDs = append(fileIDs, fmt.Sprintf("%d", file.ID)) } } return fileIDs }