utils

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = 1 << (10 * iota)
	MB
	GB
	TB
	PB
	EB
)

Variables

This section is empty.

Functions

func GetDate

func GetDate(dateStr string) string

func GetSize

func GetSize(bytes int64) string

func ListenToStream

func ListenToStream(sub chan<- ResponseMsg, stream io.ReadCloser) tea.Cmd

func ResponseToStream

func ResponseToStream(sub chan ResponseMsg) tea.Cmd

func TickCommand

func TickCommand() tea.Cmd

Types

type ResponseMsg

type ResponseMsg string

Jump to

Keyboard shortcuts

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