Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for incCounterStmt (0.19 sec)

  1. src/cmd/cover/cover.go

    	}
    }
    
    // setCounterStmt returns the expression: __count[23] = 1.
    func setCounterStmt(f *File, counter string) string {
    	return fmt.Sprintf("%s = 1", counter)
    }
    
    // incCounterStmt returns the expression: __count[23]++.
    func incCounterStmt(f *File, counter string) string {
    	return fmt.Sprintf("%s++", counter)
    }
    
    // atomicCounterStmt returns the expression: atomic.AddUint32(&__count[23], 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 34.5K bytes
    - Viewed (0)
Back to top