MCPcopy Create free account
hub / github.com/an0nfunc/ALHP / Find

Function Find

utils.go:645–653  ·  view source on GitHub ↗
(arr []T, match T)

Source from the content-addressed store, hash-verified

643// number.
644func pkgRel(version string) string {
645 return version[strings.LastIndex(version, "-")+1:]
646}
647
648// splitPkgRel reads the build number off a pkgrel using the same rule as
649// upstreamVersion, the last dot-separated component. Upstream pkgrels carry a
650// dot of their own often enough that the trailing component cannot be assumed to
651// be ours. A pkgrel without one reports 0, below every number increasePkgRel
652// hands out.
653func splitPkgRel(pkgrel string) (base string, buildNo int, err error) {
654 dot := strings.LastIndex(pkgrel, ".")
655 if dot < 0 {
656 return pkgrel, 0, nil

Callers 3

syncMarchsFunction · 0.85
parseFlagSubSectionFunction · 0.85
ContainsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected