Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 407 Bytes

datarace.md

File metadata and controls

11 lines (6 loc) · 407 Bytes

Pattern: Potential datarace

Issue: -

Description

This rule spots potential dataraces caused by go-routines capturing (by-reference) particular identifiers of the function from which go-routines are created. The rule is able to spot two of such cases: go-routines capturing named return values, and capturing for-range values.

Further Reading