Skip to content
Back to skills

Go Concurrency

ASecurity

Goroutines, каналы, mutex, context, отмена и ограниченный worker pool в Go.

  • 6 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 24, 2026
developmentgo

Security analysis

A100/100

Scanned November 24, 2026

npx -y skills add justxor/golang-agent-skills-ru --skill go-concurrency --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Go Concurrency?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Go Concurrency
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/justxor-go-concurrency/badge)](https://www.skillsdirectory.com/skills/justxor-go-concurrency)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-concurrency
description: "Goroutines, каналы, mutex, context, отмена и ограниченный worker pool в Go."
---

# Конкурентность в Go
- Назови владельца каждой goroutine и путь выхода; не запускай без условия остановки.
- Передавай context первым параметром, освобождай ресурсы через defer cancel().
- Для общего состояния используй mutex; не держи блокировку во время долгого I/O.
- Закрывай канал со стороны владельца отправки после завершения всех отправителей.
- Ограничивай очередь и число исполнителей. Определи поведение при переполнении.
## Пример отправки с отменой
```go
select {
case <-ctx.Done():
    return ctx.Err()
case jobs <- item:
    return nil
}
```
## Приемка
Проверь отмену, пустой вход, ошибку исполнителя, завершение очереди, гонки и повторные вызовы. Не используй time.Sleep как синхронизацию теста. Запусти go test -race для измененного пакета.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.