| Conditions | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | package hkid |
||
| 3 | func CheckString(string string) *result { |
||
| 4 | hkid, e := validatePatten(string) |
||
| 5 | if e != nil { |
||
| 6 | return newHkidResultWithValid(newHkidNil(), false) |
||
| 7 | } |
||
| 8 | |||
| 9 | if getRemainder(hkid) == hkid.part3 { |
||
| 10 | return newHkidResultWithValid(hkid, true) |
||
| 11 | } |
||
| 12 | |||
| 13 | return newHkidResultWithValid(hkid, false) |
||
| 14 | } |
||
| 20 |