]> git.giacomolli.uk - onechat/blobdiff - subagent_names.go
Prove direct cancellation during a pending sync
[onechat] / subagent_names.go
index 3b9f3a5a4e750ffd90b61f53350cf28580b25be5..5e49d2a8a46e65319b0f1765d0c8690c2875f7b3 100644 (file)
@@ -44,6 +44,11 @@ func subagentNameRandom() string {
        return subagentWord(adjective) + subagentWord(noun)
 }
 
+// subagentWord returns word with its first letter in upper case.
+func subagentWord(word string) string {
+       return strings.ToUpper(word[:1]) + word[1:]
+}
+
 // subagentNameValid tells if name is an adjective and a noun of the word lists,
 // each capitalized, joined. Only such a name can be a directory of a subagent.
 func subagentNameValid(name string) bool {
@@ -62,8 +67,3 @@ func subagentNameValid(name string) bool {
 
        return false
 }
-
-// subagentWord returns word with its first letter in upper case.
-func subagentWord(word string) string {
-       return strings.ToUpper(word[:1]) + word[1:]
-}