cwidgets

package
v0.1.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteFormat

func ByteFormat(n int) string

convenience methods

func ByteFormat64

func ByteFormat64(n int64) string

func ByteFormat64Short

func ByteFormat64Short(n int64) string

func ByteFormatShort

func ByteFormatShort(n int) string

Types

type NullWidgetUpdater

type NullWidgetUpdater struct{}

func (NullWidgetUpdater) SetMeta

func (wu NullWidgetUpdater) SetMeta(models.Meta)

NullWidgetUpdater implements WidgetUpdater

func (NullWidgetUpdater) SetMetrics

func (wu NullWidgetUpdater) SetMetrics(models.Metrics)

NullWidgetUpdater implements WidgetUpdater

type WidgetUpdater

type WidgetUpdater interface {
	SetMeta(models.Meta)
	SetMetrics(models.Metrics)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址