From a378c93d68d6ed9e0c3647b0289016100f51c031 Mon Sep 17 00:00:00 2001 From: bytedream Date: Sun, 6 Mar 2022 02:41:23 +0100 Subject: [PATCH] Made some structs private --- cmd/crunchyroll-go/cmd/utils.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/crunchyroll-go/cmd/utils.go b/cmd/crunchyroll-go/cmd/utils.go index 09b4a2f..b9bc2d0 100644 --- a/cmd/crunchyroll-go/cmd/utils.go +++ b/cmd/crunchyroll-go/cmd/utils.go @@ -204,7 +204,7 @@ func extractEpisodes(url string, locales ...crunchyroll.LOCALE) [][]*crunchyroll return final } -type FormatInformation struct { +type formatInformation struct { // the format to download format *crunchyroll.Format @@ -221,7 +221,7 @@ type FormatInformation struct { Subtitle crunchyroll.LOCALE `json:"subtitle"` } -func (fi FormatInformation) Format(source string) string { +func (fi formatInformation) Format(source string) string { fields := reflect.TypeOf(fi) values := reflect.ValueOf(fi) @@ -246,7 +246,7 @@ func (fi FormatInformation) Format(source string) string { return source } -type DownloadProgress struct { +type downloadProgress struct { Prefix string Message string @@ -259,15 +259,15 @@ type DownloadProgress struct { lock sync.Mutex } -func (dp *DownloadProgress) Update() { +func (dp *downloadProgress) Update() { dp.update("", false) } -func (dp *DownloadProgress) UpdateMessage(msg string, permanent bool) { +func (dp *downloadProgress) UpdateMessage(msg string, permanent bool) { dp.update(msg, permanent) } -func (dp *DownloadProgress) update(msg string, permanent bool) { +func (dp *downloadProgress) update(msg string, permanent bool) { if dp.Quiet { return }