37.3K subscribers
1.48K photos
34 videos
5 files
1.62K links
加入频道
Go 1.16 Release Candidate 1 is released!

Go 1.16, due to have its final release in February, is now taking its final form and is ready for your production testing, say the Go team.

>>>
It is cut from release-branch.go1.16 at the revision tagged go1.16rc1. Please try your production load tests and unit tests with the new version, your help testing these pre-release versions is invaluable.

Report any problems using the issue tracker: https://golang.org/issue/new

If you have Go installed already, the easiest way to try go1.16rc1 is by using the go command:

$ go get golang.org/dl/go1.16rc1
$ go1.16rc1 download


You can download binary and source distributions from the usual place: https://golang.org/dl/#go1.16rc1

To find out what has changed in Go 1.16, read the draft release notes: https://tip.golang.org/doc/go1.16

Source: https://groups.google.com/g/golang-announce/c/U_FUHY4wuSc/m/3_Vw3oqpAgAJ
How to work with context.Context: an official blog post.

The documentation for context states:

“Contexts should not be stored inside a struct type, but instead passed to each function that needs it.”

This article expands on that advice with reasons and examples describing why it's important to pass Context rather than store it in another type.

https://blog.golang.org/context-and-structs
Introduction to generics from “Learn Go wil tests”: A nice tutorial that takes a step approach to teach generics starting from duplicating code for types, then to interface{}, and finally to generics. And you can run it all in the go2go playground.

https://quii.gitbook.io/learn-go-with-tests/meta/intro-to-generics
BLACK HAT GO
Go Programming for Hackers and
Pentesters

2020

https://github.com/blackhat-go/bhg

@Golang_google
Создание базового RESTful (CRUD) с помощью Golang и MySQL

https://dev-gang.ru/article/sozdanie-bazovogo-restful-crud-s-pomosczu-golang-i-mysql-easg6h3rql/

@Golang_google
Базовый веб сервер на Go

https://dev-gang.ru/article/go-web-server/

@Golang_google