Documentation
¶
Index ¶
- func CPU_Counts(logical bool) (int, error)
- func CPU_Percent(interval time.Duration, percpu bool) ([]float64, error)
- func CaptureFrame(gtx layout.Context, img *image.RGBA) error
- func CompactTimeAgo(date time.Time) string
- func CopyFile(src string, dest string) error
- func CreateFolderPath(folderPath string) error
- func DecodeAddress(value string) (string, error)
- func DecodeString(value string) (string, error)
- func FormatBytes(value int64) string
- func FormatHashRate(hash_rate uint64) string
- func GetFolderSize(folderPath string) (int64, error)
- func IsAndroid() bool
- func IsErrLeafNotFound(err error) bool
- func IsIOS() bool
- func IsMobile() bool
- func IsTcpAddrInUse(addr string) (bool, error)
- func MultDiv(a uint64, b uint64, c uint64) uint64
- func NewImageColor(size image.Point, color color.RGBA) *image.RGBA
- func PaintLinearGradient(gtx layout.Context, colorStart color.NRGBA, colorEnd color.NRGBA) clip.Stack
- func ReduceAddr(addr string) string
- func ReduceString(s string, maxLeft, maxRight int) string
- func ReduceTxId(txId string) string
- func SplitString(s string, size int) []string
- type ForceActiveLoop
- type ReadCloser
- type ShiftNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CPU_Counts ¶
func CompactTimeAgo ¶
func CreateFolderPath ¶
func DecodeAddress ¶
func DecodeString ¶
func FormatBytes ¶
func FormatHashRate ¶
func GetFolderSize ¶
func IsErrLeafNotFound ¶
func IsTcpAddrInUse ¶
func PaintLinearGradient ¶
func ReduceAddr ¶
func ReduceString ¶
func ReduceTxId ¶
func SplitString ¶
Types ¶
type ForceActiveLoop ¶
func NewForceActiveLoop ¶
func NewForceActiveLoop(d time.Duration, updateFunc func()) *ForceActiveLoop
func (*ForceActiveLoop) Close ¶
func (a *ForceActiveLoop) Close()
func (*ForceActiveLoop) SetActive ¶
func (a *ForceActiveLoop) SetActive()
type ReadCloser ¶
type ReadCloser struct {
io.ReadCloser
}
func (ReadCloser) ReadAll ¶
func (file ReadCloser) ReadAll() (data []byte, err error)
type ShiftNumber ¶
func (ShiftNumber) Format ¶
func (s ShiftNumber) Format() string
func (ShiftNumber) LocaleString ¶
func (s ShiftNumber) LocaleString(t language.Tag) string
func (*ShiftNumber) Parse ¶
func (s *ShiftNumber) Parse(value string) error
func (ShiftNumber) Value ¶
func (s ShiftNumber) Value() float64
Click to show internal directories.
Click to hide internal directories.