Documentation
¶
Index ¶
Constants ¶
View Source
const (
TempFileName = "all_songs"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Youtube ¶
type Youtube struct {
Service *youtube.Service
}
func New ¶
New will read from config file than make youtube client and service according to that client returns pointer to youtube.Service
func (Youtube) ChannelInfo ¶
The getChannelInfo uses forUsername to get info (id, tittle, totalViews and description)
func (Youtube) GetAllPlaylists ¶
Gets all playlists of current user - maxResult is set to 50 (default is 5) returns array of all playlists (id, name, count)
func (Youtube) GetAllVideos ¶
Gets all the videos of all playlists of mine Different goroutines are appending the same vds slice; WaitGroup waits for all goroutines to finish
func (Youtube) WriteAllSongsToFile ¶
WriteAllSongsToFile goes through all playlists and write all songs to file it returns pointer to file
Click to show internal directories.
Click to hide internal directories.