github.com/yuin/goldmark/text.Segment.TrimRightSpace (method)
5 uses
github.com/yuin/goldmark/text (current package)
segment.go#L75: func (t *Segment) TrimRightSpace(buffer []byte) Segment {
github.com/yuin/goldmark/extension
definition_list.go#L135: term.Lines().Append(segment.TrimRightSpace(reader.Source()))
table.go#L234: seg = seg.TrimRightSpace(source)
github.com/yuin/goldmark/parser
paragraph.go#L57: node.Lines().Set(length-1, lastLine.TrimRightSpace(reader.Source()))
parser.go#L1212: text := ast.NewTextSegment(rest.TrimRightSpace(source))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |