format

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bites

func Bites(size float64) string

func TimeSince added in v1.1.0

func TimeSince(t time.Time) string

Types

type FriendTime

type FriendTime struct {
	// contains filtered or unexported fields
}

func NewFriendTime

func NewFriendTime(unixTime int64) *FriendTime

func (*FriendTime) Format

func (f *FriendTime) Format() string

func (*FriendTime) SetFormat

func (f *FriendTime) SetFormat(format string)

func (*FriendTime) SetStartTime

func (f *FriendTime) SetStartTime(startTime int64)

func (*FriendTime) SetSuffix

func (f *FriendTime) SetSuffix(suffix string)

Jump to

Keyboard shortcuts

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