format

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRelativeModified

func IsRelativeModified(s string) bool

IsRelativeModified reports whether s is a relative mtime label from Modified().

func LsTime

func LsTime(t time.Time, now time.Time, full bool) string

LsTime formats mtime like GNU ls -l.

func Modified

func Modified(t time.Time, now time.Time) string

Modified formats mtime for display.

func Size

func Size(nbytes int64, human bool, approx bool) string

Size formats nbytes for display.

Types

This section is empty.

Jump to

Keyboard shortcuts

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