MCPcopy Create free account
hub / github.com/buger/goterm / ff

Function ff

plot.go:68–70  ·  view source on GitHub ↗

Format float

(num interface{})

Source from the content-addressed store, hash-verified

66
67// Format float
68func ff(num interface{}) string {
69 return fmt.Sprintf("%.1f", num)
70}
71
72func NewLineChart(width, height int) *LineChart {
73 chart := new(LineChart)

Callers 2

DrawAxesMethod · 0.85
DrawMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected