01
언제 사용하는가
Go 코드에서 고루틴, 채널, select, 락, sync 원자적 구조체, errgroup, singleflight, 워커 풀 또는 fan-out/fan-in 파이프라인과 관련된 동시성 작업을 작성하거나 검토할 때 사용합니다.
또한 고루틴 누수, 경쟁 조건, 채널 소유권 문제를 감지하거나 채널과 뮤텍스 사이에서 선택해야 할 경우에도 트리거됩니다.
02
따라 하는 방법
- curl http://localhost:6060/debug/pprof/goroutineleak?debug=2을 실행합니다.
- /debug/pprof/goroutine?debug=2 세션을 실행합니다.
03
설치 방법
npx skills add installs: 33787 --skill golang-concurrency