blob: 6e8a6904c3ca2588bbaba0216d470e7548021047 [file] [log] [blame]
// Copyright 2019 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// latestgo prints the latest Go release tag to stdout as a part of the playground deployment process.
package main
import (
grpc ""
const maintnerURI = ""
func main() {
conn, err := grpc.NewClient(nil, maintnerURI)
if err != nil {
log.Fatalf("error creating grpc client for %q: %v", maintnerURI, err)
mc := apipb.NewMaintnerServiceClient(conn)
resp, err := mc.ListGoReleases(context.Background(), &apipb.ListGoReleasesRequest{})
if err != nil {
// On success, the maintner API always returns at least two releases.