MCPcopy Index your code
hub / github.com/devploit/nomore403 / finish

Method finish

cmd/progress.go:80–93  ·  view source on GitHub ↗

finish clears the progress bar for good.

()

Source from the content-addressed store, hash-verified

78
79// finish clears the progress bar for good.
80func (p *progress) finish() {
81 if p.total <= 0 || !progressEnabled() {
82 return
83 }
84 printMutex.Lock()
85 defer printMutex.Unlock()
86 if atomic.LoadInt32(&p.active) == 1 {
87 fmt.Fprintf(os.Stderr, "\r\033[2K")
88 atomic.StoreInt32(&p.active, 0)
89 }
90 if activeProgress == p {
91 activeProgress = nil
92 }
93}
94
95func (p *progress) renderLocked(completed int64) {
96 total := p.total

Callers 15

requestMethodsFunction · 0.80
requestHeadersFunction · 0.80
requestEndPathsFunction · 0.80
requestMidPathsFunction · 0.80
requestDoubleEncodingFunction · 0.80
requestUnicodeEncodingFunction · 0.80
requestPayloadPositionsFunction · 0.80
requestPathCaseSwitchingFunction · 0.80
requestHopByHopFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected