Versions in this module Expand all Collapse all v1 v1.2.0 Apr 24, 2024 Changes in this version + func GuardedBlocks(data string, begin *regexp.Regexp, end *regexp.Regexp) (blocks []string) v1.1.0 Mar 29, 2024 Changes in this version + func IsWhitespace(data string) (isWhitespace bool) + func LineLengths(data []byte) []uint + func LineLengthsForFile(filePath string) ([]uint, error) + func PrefixContinuationLinesWith(paragraph string, prefix string) string + func PrefixLines(data []byte, prefix []byte) (result []byte) + func RemoveLine(in string, search string) (out string) + func RenderMarkdownFileToHTMLFile(markdownFilePath string, htmlFilePath string) (err error) + func ReplaceBytesInBinary(binaryPathIn string, binaryPathOut string, search []byte, replace []byte, ...) (err error) + func ReplaceBytesInFile(filePathIn string, filePathOut string, search []byte, replace []byte, n int) (err error) + func RewriteWebsiteContent(data string, defaultURL string, url string, uriPrefix string, ...) (dataReplaced string) + func RewriteWebsiteContentDirectory(contentDirectoryPath string, defaultURL string, url string, uriPrefix string, ...) (err error) + func SearchAndReplaceFile(file string, search *regexp.Regexp, replace string) (err error) + func SortLines(s string) (sorted string) + func SortLinesAndTrimSpace(s string) (sorted string) + func Split(s []byte, sep byte) <-chan []byte + func StringTrimIndentations(s string) string + func TrimIndentations(s []byte) []byte + func WordAfterFirstMatch(str string, substring string) string + type SynchronizedBuffer struct + func (b *SynchronizedBuffer) Bytes() []byte + func (b *SynchronizedBuffer) Cap() int + func (b *SynchronizedBuffer) Grow(n int) + func (b *SynchronizedBuffer) Len() int + func (b *SynchronizedBuffer) Next(n int) []byte + func (b *SynchronizedBuffer) Read(p []byte) (n int, err error) + func (b *SynchronizedBuffer) ReadByte() (byte, error) + func (b *SynchronizedBuffer) ReadBytes(delim byte) (line []byte, err error) + func (b *SynchronizedBuffer) ReadFrom(r io.Reader) (n int64, err error) + func (b *SynchronizedBuffer) ReadRune() (r rune, size int, err error) + func (b *SynchronizedBuffer) ReadString(delim byte) (line string, err error) + func (b *SynchronizedBuffer) Reset() + func (b *SynchronizedBuffer) String() string + func (b *SynchronizedBuffer) Truncate(n int) + func (b *SynchronizedBuffer) UnreadByte() error + func (b *SynchronizedBuffer) UnreadRune() error + func (b *SynchronizedBuffer) Write(p []byte) (n int, err error) + func (b *SynchronizedBuffer) WriteByte(c byte) error + func (b *SynchronizedBuffer) WriteRune(r rune) (n int, err error) + func (b *SynchronizedBuffer) WriteString(s string) (n int, err error) + func (b *SynchronizedBuffer) WriteTo(w io.Writer) (n int64, err error)