Code cleaning

This commit is contained in:
Riccardo
2022-07-25 19:05:37 +02:00
parent b7eb930bd8
commit 9f5d892e5b
4 changed files with 36 additions and 19 deletions

View File

@@ -23,8 +23,8 @@ func GetTopNewsIds(url string) (response []string) {
log.Fatalln(err)
}
body_string := string(body)
response = strings.Split(body_string[1:len(body_string)-1], ",")
bodyString := string(body)
response = strings.Split(bodyString[1:len(bodyString)-1], ",")
fmt.Println("Done.")