Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
iLexN committed Oct 29, 2019
1 parent 48d6a0d commit 7ead243
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions hkid.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package hkid

// Check HKID Format eg. CA182361(1).
func CheckString(string string) *result {
hkid, e := validatePatten(string)
//if errors.Is(e, newPatterNotMatchError()) {
Expand All @@ -14,6 +15,10 @@ func CheckString(string string) *result {
return newHkidResultWithValid(hkid, false)
}

// Check HKID Format eg. CA182361(1).
// part1 = "CA"
// part2 = "182361"
// part3 = "1"
func CheckPart(part1 string, part2 string, part3 string) *result {
hkid := newHkid(part1, part2, part3)
return CheckString(hkid.Format())
Expand Down

0 comments on commit 7ead243

Please sign in to comment.