crash.software
Projects
Pull Requests
Issues
Builds
termdash
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
termdash
Files
🤬
Sign In
84148684
ROOT
/
termdashdemo
/
termdashdemo.go
Search
History
947 lines
|
ISO-8859-1
|
22 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
redrawInterval
widgets
segDist
:
*segmentdisplay.SegmentDisplay
input
:
*textinput.TextInput
rollT
:
*text.Text
spGreen
:
*sparkline.SparkLine
spRed
:
*sparkline.SparkLine
gauge
:
*gauge.Gauge
heartLC
:
*linechart.LineChart
barChart
:
*barchart.BarChart
donut
:
*donut.Donut
leftB
:
*button.Button
rightB
:
*button.Button
sineLC
:
*linechart.LineChart
buttons
:
*layoutButtons
newWidgets
(ctx context.Context, c *container.Container)
:
(*widgets, error)
layoutType
layoutAll
:
layoutType
layoutText
layoutSparkLines
layoutLineChart
gridLayout
(w *widgets, lt layoutType)
:
([]container.Option, error)
contLayout
(w *widgets)
:
([]container.Option, error)
rootID
main
()
periodic
(ctx context.Context, interval time.Duration, fn func() error)
textState
(text string, capacity, step int)
:
[]rune
newTextInput
(updateText chan<- string)
:
(*textinput.TextInput, error)
newSegmentDisplay
(ctx context.Context, updateText <-chan string)
:
(*segmentdisplay.SegmentDisplay, error)
newRollText
(ctx context.Context)
:
(*text.Text, error)
newSparkLines
(ctx context.Context)
:
(*sparkline.SparkLine, *sparkline.SparkLine, error)
newGauge
(ctx context.Context)
:
(*gauge.Gauge, error)
newDonut
(ctx context.Context)
:
(*donut.Donut, error)
newHeartbeat
(ctx context.Context)
:
(*linechart.LineChart, error)
newBarChart
(ctx context.Context)
:
(*barchart.BarChart, error)
distance
v
:
int
mu
:
sync.Mutex
newSines
(ctx context.Context)
:
(left, right *button.Button, lc *linechart.LineChart, err error)
setLayout
(c *container.Container, w *widgets, lt layoutType)
:
error
layoutButtons
allB
:
*button.Button
textB
:
*button.Button
spB
:
*button.Button
lcB
:
*button.Button
newLayoutButtons
(c *container.Container, w *widgets)
:
(*layoutButtons, error)
rotateFloats
(inputs []float64, step int)
:
[]float64
rotateRunes
(inputs []rune, step int)
:
[]rune
*distance
add
(v int)
get
()
:
int
All occurrences
Please wait...
Page is in error, reload to recover