func math.Min
9 uses
math (current package)
dim.go#L62: func Min(x, y float64) float64
github.com/google/go-cmp/cmp/cmpopts
equate.go#L68: relMarg := a.frac * math.Min(math.Abs(x), math.Abs(y))
github.com/sergi/go-diff/diffmatchpatch
diff.go#L515: textLength := int(math.Min(float64(text1Length), float64(text2Length)))
match.go#L20: loc = int(math.Max(0, math.Min(float64(loc), float64(len(text)))))
match.go#L46: scoreThreshold = math.Min(dmp.matchBitapScore(0, bestLoc, loc,
match.go#L51: scoreThreshold = math.Min(dmp.matchBitapScore(0, bestLoc, loc,
match.go#L78: finish := int(math.Min(float64(loc+binMid), float64(len(text))) + float64(len(pattern)))
patch.go#L278: text2 = text[startLoc:int(math.Min(float64(startLoc+len(text1)), float64(len(text))))]
patch.go#L280: text2 = text[startLoc:int(math.Min(float64(endLoc+dmp.MatchMaxBits), float64(len(text))))]
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |