MCPcopy
hub / github.com/gin-gonic/gin / getMinVer

Function getMinVer

debug.go:72–79  ·  view source on GitHub ↗
(v string)

Source from the content-addressed store, hash-verified

70}
71
72func getMinVer(v string) (uint64, error) {
73 first := strings.IndexByte(v, '.')
74 last := strings.LastIndexByte(v, '.')
75 if first == last {
76 return strconv.ParseUint(v[first+1:], 10, 64)
77 }
78 return strconv.ParseUint(v[first+1:last], 10, 64)
79}
80
81func debugPrintWARNINGDefault() {
82 if v, e := getMinVer(runtimeVersion); e == nil && v < ginSupportMinGoVer {

Callers 2

debugPrintWARNINGDefaultFunction · 0.85
TestGetMinVerFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestGetMinVerFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…