История изменений
Исправление beastie, (текущая версия) :
TL;DR:
package main
import (
"context"
"fmt"
"github.com/google/go-github/v28/github"
)
func main() {
client := github.NewClient(nil)
rels, _, _ := client.Repositories.ListReleases(context.Background(), "rabbitmq", "erlang-rpm", nil)
for _, rel := range rels {
asses, _, _ := client.Repositories.ListReleaseAssets(context.Background(), "rabbitmq", "erlang-rpm", rel.GetID(), nil)
for _, ass := range asses {
fmt.Println(rel.GetName(), ass.GetName(), ass.GetBrowserDownloadURL())
}
}
}
В общем, как-то так. Дальше сам резберёшься.
Исправление beastie, :
TL;DR:
package main
import (
"context"
"fmt"
"github.com/google/go-github/v28/github"
)
func main() {
client := github.NewClient(nil)
rels, _, _ := client.Repositories.ListReleases(context.Background(), "rabbitmq", "erlang-rpm", nil)
for _, rel := range rels {
asses, _, _ := client.Repositories.ListReleaseAssets(context.Background(), "rabbitmq", "erlang-rpm", rel.GetID(), nil)
for _, ass := range asses {
fmt.Println(rel.GetName(), ass.GetName(), ass.GetBrowserDownloadURL())
}
}
}
Исходная версия beastie, :
TL;DR:
package main
import (
"context"
"fmt"
"github.com/google/go-github/v28/github"
)
func main() {
client := github.NewClient(nil)
r, _, _ := client.Repositories.ListReleases(context.Background(), "rabbitmq", "erlang-rpm", nil)
for _, rel := range r {
fmt.Println(rel.GetName(), rel.GetAssetsURL())
}
}