37.3K subscribers
1.48K photos
34 videos
5 files
1.63K links
加入频道
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
Использование переменных окружения в Go

https://dev-gang.ru/article/golang-environment-variables/

@Golang_google