Test Failed
Push — master ( 2f8cd9...4364b8 )
by iLex
01:33
created
Severity
1
package go_hkid
0 ignored issues
show
don't use an underscore in package name
Loading history...
2
3
func CheckString(string string) *HkidResult {
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
}
15
16
func CheckPart(part1 string, part2 string, part3 string) *HkidResult {
17
	hkid := NewHkid(part1, part2, part3)
18
	return CheckString(hkid.Format())
19
}
20