[Golang] Brute Force 🤝💪✅✅✅ || Runtime = 142 ms || Memory = 7.4 MB
\nfunc splitMessage(message string, limit int) []string {\n\tp := 1\n\ta := 1\n\n\tfor p*(size(p)+3)+a+len(message) > p*limit {\n\t\tif 3+size(p)*2 >= limit {\n
```\nfunc splitMessage(message string, limit int) []string {\n\tp := 1\n\ta := 1\n\n\tfor p*(size(p)+3)+a+len(message) > p*limit {\n\t\tif 3+size(p)*2 >= limit {\n\t\t\treturn []string{}\n\t\t}\n\t\tp += 1\n\t\ta += size(p)\n\t}\n\n\tparts := make([]string, 0)\n\n\tfor i := 1; i < p+1; i++ {\n\t\tj := Min(limit - (size(p) + size(i) + 3), len(message))\n\t\tpart := message[0:j]\n\t\tmessage = message[j:]\n\t\tparts = append(parts, fmt.Sprintf("%s<%d/%d>", part, i, p))\n\t}\n\n\treturn parts\n}\n\nfunc Min(x, y int) int {\n\tif x < y {\n\t\treturn x\n\t}\n\treturn y\n}\n\nfunc size(n int) int {\n\treturn len(strconv.Itoa(n))\n}\n\n```
['Go']