Permalink
Please sign in to comment.
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...
Showing
with
472 additions
and 0 deletions.
- BIN 2019/whats-new-in-go1.12/are-there-generics.png
- BIN 2019/whats-new-in-go1.12/brad-approved.png
- BIN 2019/whats-new-in-go1.12/flying.png
- +433 −0 2019/whats-new-in-go1.12/go1.12.slide
- BIN 2019/whats-new-in-go1.12/go1.12beta2-released.png
- +39 −0 2019/whats-new-in-go1.12/isgo112outyet.go
- BIN 2019/whats-new-in-go1.12/no-generics-yet.png
- BIN 2019/whats-new-in-go1.12/release-cycle.png
- BIN 2019/whats-new-in-go1.12/release-notes.png
- BIN 2019/whats-new-in-go1.12/tls-later.png
- BIN 2019/whats-new-in-go1.12/tls-start.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
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