Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/opencontainers/runc
/ String
Method
String
libcontainer/system/kernelversion/kernel_linux.go:41–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
}
40
41
func
(k *KernelVersion) String() string {
42
if
k.Kernel > 0 || k.Major > 0 {
43
return
fmt.Sprintf(
"%d.%d"
, k.Kernel, k.Major)
44
}
45
return
""
46
}
47
48
var
(
49
currentKernelVersion *KernelVersion
Callers
1
TestGreaterEqualThan
Function · 0.45
Calls
no outgoing calls
Tested by
1
TestGreaterEqualThan
Function · 0.36