tutils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const TimeFormat = "2006-01-02T15:04:05"

Variables

This section is empty.

Functions

func Btoi

func Btoi(x bool) uint32

func ErrorJSON

func ErrorJSON(err error) map[string]any

func FatalIf

func FatalIf(err error)

func FileExists

func FileExists(s string) (bool, error)

func FileFallback

func FileFallback(path ...string) string

func GetIpFromAddress

func GetIpFromAddress(s string) string

func Hostname

func Hostname() string

func IsDirEmpty

func IsDirEmpty(p string) (bool, error)

func ParseFloat64

func ParseFloat64(s string) (float64, error)

func ParseInt64

func ParseInt64(s string) (int64, error)

func ParseUint32

func ParseUint32(s string) (uint32, error)

func ParseUint64

func ParseUint64(s string) (uint64, error)

func SafeFilename

func SafeFilename(filename string) string

func SplitNewline

func SplitNewline(c rune) bool

func SplitSpace

func SplitSpace(c rune) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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