Documentation ¶
Index ¶
- Constants
- func DefaultSendOptions() *gotgbot.SendMessageOpts
- func EmbedGUID(guid string) string
- func Escape(s string) string
- func FormatFloat(f float64) string
- func FormatThousand[T constraints.Integer](n T) string
- func FullName(firstName, lastName string) string
- func GermanTimezone() *time.Location
- func HumanizeDuration(d *duration.Duration) string
- func HumanizeSize(size int64) string
- func LocalizeDatestring(date string) string
- func RoundAndFormatThousand(n float64) string
- func TimestampToTime(timestamp int64) time.Time
- type VersionInfo
Constants ¶
View Source
const ( Day = 24 * time.Hour Week = 7 * Day InlineQueryFailureCacheTime = 2 // In seconds UserAgent = "Mozilla/5.0 (Windows NT 11.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" )
Variables ¶
This section is empty.
Functions ¶
func DefaultSendOptions ¶
func DefaultSendOptions() *gotgbot.SendMessageOpts
func FormatFloat ¶
func FormatThousand ¶
func FormatThousand[T constraints.Integer](n T) string
func GermanTimezone ¶
func HumanizeDuration ¶
func HumanizeSize ¶
func LocalizeDatestring ¶
func RoundAndFormatThousand ¶
func TimestampToTime ¶
Types ¶
type VersionInfo ¶
type VersionInfo struct { GoVersion string GoOS string GoArch string Revision string LastCommit time.Time DirtyBuild bool }
func ReadVersionInfo ¶
func ReadVersionInfo() (VersionInfo, error)
Click to show internal directories.
Click to hide internal directories.