utils

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToSeconds

func ConvertToSeconds(s string) (seconds float64, err error)

ConvertToSeconds converts a string lik 00:00:11.35 into seconds (11.35)

func CopyFile

func CopyFile(src, dst string) (int64, error)

func GetStringInBetween

func GetStringInBetween(str string, start string, end string) (result string)

GetStringInBetween returns empty string if no start or end string found

func RandStringBytesMaskImpr added in v1.0.1

func RandStringBytesMaskImpr(n int) string

func SecondsToString

func SecondsToString(seconds float64) string

SecondsToString seconds like 80 to a string like 00:01:20.00

func TempFileName

func TempFileName(prefix, suffix string) string

TempFileName generates a temporary filename for use in testing or whatever

Types

This section is empty.

Jump to

Keyboard shortcuts

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