aboutsummaryrefslogtreecommitdiff
path: root/go-src/utils
diff options
context:
space:
mode:
Diffstat (limited to 'go-src/utils')
-rw-r--r--go-src/utils/utils.go7
1 files changed, 7 insertions, 0 deletions
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
+}