MCPcopy Create free account
hub / github.com/ethereum/node-crawler / parseOS

Function parseOS

pkg/vparser/vparser.go:162–173  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

160}
161
162func parseOS(input string) OSInfo {
163 split := strings.Split(input, "-")
164 var osInfo OSInfo
165 switch len(split) {
166 case 2:
167 osInfo.Architecture = split[1]
168 fallthrough
169 case 1:
170 osInfo.Os = split[0]
171 }
172 return osInfo
173}

Callers 1

ParseVersionStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected