From 803099c73e6b1f4a5fb84c204ebb071ee1e350b8 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 23 Jul 2021 10:19:42 +0300 Subject: Reworked user functions into methods, properly implemented account updating --- go-src/utils/utils.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'go-src/utils') diff --git a/go-src/utils/utils.go b/go-src/utils/utils.go index a6aa08f..7b7314e 100644 --- a/go-src/utils/utils.go +++ b/go-src/utils/utils.go @@ -60,3 +60,10 @@ func (c If) Int(a, b int) int { } return b } + +func (c If) String(a, b string) string { + if c { + return a + } + return b +} -- cgit v1.2.3