diff options
| author | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-23 10:19:42 +0300 |
|---|---|---|
| committer | Syndamia <kamen.d.mladenov@protonmail.com> | 2021-07-23 10:19:42 +0300 |
| commit | 803099c73e6b1f4a5fb84c204ebb071ee1e350b8 (patch) | |
| tree | 4720a40e84fe828de8cbe48f6e4518e455311786 /go-src/utils | |
| parent | 0b281b813a9ab00d7c69eb140ab5ac2952987316 (diff) | |
| download | ctfc-803099c73e6b1f4a5fb84c204ebb071ee1e350b8.tar ctfc-803099c73e6b1f4a5fb84c204ebb071ee1e350b8.tar.gz ctfc-803099c73e6b1f4a5fb84c204ebb071ee1e350b8.zip | |
Reworked user functions into methods, properly implemented account updating
Diffstat (limited to 'go-src/utils')
| -rw-r--r-- | go-src/utils/utils.go | 7 |
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 +} |
