X-Git-Url: https://git.giacomolli.uk/onechat/blobdiff_plain/6e3e9c5c10f3d35bae7e9846334974a09418aef7..03ef9525ba0e62037b55606b851ee746967a003f:/subagent_names.go diff --git a/subagent_names.go b/subagent_names.go index 3b9f3a5..5e49d2a 100644 --- a/subagent_names.go +++ b/subagent_names.go @@ -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:] -}