update dynamic buffer
This commit is contained in:
parent
7d8894d842
commit
a46fe140a3
1 changed files with 2 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ import (
|
||||||
// but may extend to maxLen when needed.
|
// but may extend to maxLen when needed.
|
||||||
// Call SplitMessage with the full text content and the maximum allowed length of a single message;
|
// Call SplitMessage with the full text content and the maximum allowed length of a single message;
|
||||||
// it returns a slice of message chunks that each respect maxLen and avoid splitting fenced code blocks.
|
// it returns a slice of message chunks that each respect maxLen and avoid splitting fenced code blocks.
|
||||||
|
// Call SplitMessage with the full text content and the maximum allowed length of a single message;
|
||||||
|
// it returns a slice of message chunks that each respect maxLen and avoid splitting fenced code blocks.
|
||||||
func SplitMessage(content string, maxLen int) []string {
|
func SplitMessage(content string, maxLen int) []string {
|
||||||
var messages []string
|
var messages []string
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue