Permalink
Browse files

add "What's new in Go 1.12?" talk

This is a talk I gave at Sidewalk Labs on 2019-01-28.

The slides are publicly accessible at https://dmitri.shuralyov.com/talks/2019/whats-new-in-go1.12/go1.12.slide.
  • Loading branch information...
dmitshur committed Jan 28, 2019
1 parent 5151d6c commit 9fc672ad0b38a4d97e59cb93dc4f7c2572393050
Binary file not shown.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
@@ -0,0 +1,39 @@
// +build ignore

package main

import (
"context"
"fmt"
"log"

"grpc.go4.org"
)

import "golang.org/x/build/maintner/maintnerd/apipb"

func main() {
cc, err := grpc.NewClient(nil, "https://maintner.golang.org")
if err != nil {
log.Fatalln(err)
}
mc := apipb.NewMaintnerServiceClient(cc)

err = PrintGoReleases(mc)
if err != nil {
log.Fatalln(err)
}
}

// PrintGoReleases uses the provided maintner client
// to print the latest supported Go releases.
func PrintGoReleases(mc apipb.MaintnerServiceClient) error {
resp, err := mc.ListGoReleases(context.Background(), &apipb.ListGoReleasesRequest{})
if err != nil {
return err
}
for _, r := range resp.Releases {
fmt.Println(r.TagName)
}
return nil
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 9fc672a

Please sign in to comment.