MCPcopy Index your code
hub / github.com/gonum/plot / Lines

Method Lines

text/plain.go:34–37  ·  view source on GitHub ↗

Lines splits a given block of text into separate lines.

(txt string)

Source from the content-addressed store, hash-verified

32
33// Lines splits a given block of text into separate lines.
34func (hdlr Plain) Lines(txt string) []string {
35 txt = strings.TrimRight(txt, "\n")
36 return strings.Split(txt, "\n")
37}
38
39// Box returns the bounding box of the given non-multiline text where:
40// - width is the horizontal space from the origin.

Callers 1

DrawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected