From cee0155cf98edcc4e0e371637ac9aedabd3d56b1 Mon Sep 17 00:00:00 2001 From: Artem Henvald Date: Sat, 1 Oct 2022 17:55:12 +0300 Subject: [PATCH] Refactoring --- rnokpp.go | 4 ++-- types.go | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rnokpp.go b/rnokpp.go index f1388a1..8bedf27 100644 --- a/rnokpp.go +++ b/rnokpp.go @@ -87,7 +87,7 @@ func IsMale(rnokpp string) (bool, error) { return false, err } - return details.Gender.isMale(), nil + return details.Gender.IsMale(), nil } // IsFemale checks if RNOKPP belongs to the female gender @@ -98,7 +98,7 @@ func IsFemale(rnokpp string) (bool, error) { return false, err } - return details.Gender.isFemale(), nil + return details.Gender.IsFemale(), nil } // GetGender gets a gender from RNOKPP diff --git a/types.go b/types.go index 67581db..643a634 100644 --- a/types.go +++ b/types.go @@ -19,13 +19,13 @@ func (g Gender) String() string { return string(g) } -// isMale checks if gender is male -func (g Gender) isMale() bool { +// IsMale checks if gender is male +func (g Gender) IsMale() bool { return g == Male } -// isFemale checks if gender is female -func (g Gender) isFemale() bool { +// IsFemale checks if gender is female +func (g Gender) IsFemale() bool { return g == Female }