(code string)
| 195 | } |
| 196 | |
| 197 | func CleanCode(code string) string { |
| 198 | if code == "" { |
| 199 | return "" |
| 200 | } |
| 201 | // 寻找 '.' 的位置,如果存在则只取 '.' 之前的部分 |
| 202 | if idx := strings.Index(code, "."); idx != -1 { |
| 203 | return code[:idx] |
| 204 | } |
| 205 | // 如果没有点号,直接返回 |
| 206 | return code |
| 207 | } |
| 208 | |
| 209 | func isSHETF(code string) bool { |
| 210 | if len(code) != 6 { |
no outgoing calls
no test coverage detected
searching dependent graphs…