From 4575fc829356ba4cd538094b987d69b0233648f7 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 9 Jul 2021 14:15:45 +0300 Subject: Implemented validation of existance of username and chat name on creation --- go-src/errorMessages.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'go-src/errorMessages.go') diff --git a/go-src/errorMessages.go b/go-src/errorMessages.go index 0caf128..103bf41 100644 --- a/go-src/errorMessages.go +++ b/go-src/errorMessages.go @@ -9,3 +9,7 @@ const ( func invalidValueFor(typeName string) string { return "Invalid value for " + typeName + "!" } + +func valueAlreadyTaken(typeName string) string { + return typeName + " is already taken!" +} -- cgit v1.2.3