(input string)
| 160 | } |
| 161 | |
| 162 | func 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 | } |
no outgoing calls
no test coverage detected