(content string)
| 5651 | } |
| 5652 | |
| 5653 | func nativeMemoryDescription(content string) string { |
| 5654 | firstLine := strings.TrimSpace(strings.Split(strings.TrimSpace(content), "\n")[0]) |
| 5655 | const maxNativeMemoryDescriptionLength = 160 |
| 5656 | if len(firstLine) <= maxNativeMemoryDescriptionLength { |
| 5657 | return firstLine |
| 5658 | } |
| 5659 | return strings.TrimSpace(firstLine[:maxNativeMemoryDescriptionLength]) + "..." |
| 5660 | } |
| 5661 | |
| 5662 | func nativeMemoryTaggedContent(content string, tags []string) string { |
| 5663 | body := strings.TrimSpace(content) |
no outgoing calls
no test coverage detected