// ToJSON is used to save downlaod file information and log the download progress
ToJSON is used to save downlaod file information and log the download progress
// ToJSON is used to save downlaod file information and log the download progress
func (info *FileInfo) ToJSON(output string) {
	rankingsJSON, _ := json.MarshalIndent(info, "", "    ")
	err := ioutil.WriteFile(fmt.Sprintf("%s.json", info.GetOutput(output)), rankingsJSON, 0644)
	if err != nil {
		log.Error().Msgf("%v", err)
	}
}
func ( info * FileInfo ) ToJSON ( output string ) { rankingsJSON , _ := json . MarshalIndent ( info , " " , " " ) err := ioutil . WriteFile ( fmt . Sprintf ( " " , info . GetOutput ( output ) ) , rankingsJSON , 0644 ) if err != nil { log . Error ( ) . Msgf ( " " , err ) } }
ToJSON is used to save downlaod file information and log the download progress
ToJSON is used to save downlaod file information and log the download progress