aboutsummaryrefslogtreecommitdiff
path: root/go-src/utils
diff options
context:
space:
mode:
authorSyndamia <kamen.d.mladenov@protonmail.com>2021-07-09 13:58:13 +0300
committerSyndamia <kamen.d.mladenov@protonmail.com>2021-07-09 13:58:13 +0300
commit366a50ac99594311268512e6fe3e158a63793683 (patch)
treecffc5fa3525715e3e8b0f353df60515fb0042f68 /go-src/utils
parentf0c2a9ea2f7bd7cf8cee14c6184a7998c8aad89b (diff)
downloadctfc-366a50ac99594311268512e6fe3e158a63793683.tar
ctfc-366a50ac99594311268512e6fe3e158a63793683.tar.gz
ctfc-366a50ac99594311268512e6fe3e158a63793683.zip
Implemented going back in pages that use forms and implemented basic creation and getting of chats
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 673f749..f50ab50 100644
--- a/go-src/utils/utils.go
+++ b/go-src/utils/utils.go
@@ -16,3 +16,10 @@ func ReplaceAtIndex(in string, r rune, i int) string {
out[i] = r
return string(out)
}
+
+func TwoDByteArrayToStringArray(in [][]byte) (result []string) {
+ for _, v := range in {
+ result = append(result, string(v))
+ }
+ return
+}