Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
68
func
ff(num
interface
{}) string {
69
return
fmt.Sprintf(
"%.1f"
, num)
70
}
71
72
func
NewLineChart(width, height int) *LineChart {
73
chart := new(LineChart)
Callers
2
DrawAxes
Method · 0.85
Draw
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected