common

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FMT_DATETIME string = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url, outputPath string) error

直接下载小文件的函数

func FormatNumberWithHeadZeros

func FormatNumberWithHeadZeros(num int, totalDigits int) string

func FormatNumberWithTrailingZeros

func FormatNumberWithTrailingZeros(num int, totalDigits int) string

FormatNumberWithTrailingZeros 将数字格式化为指定位数,不足部分后面补零

func IsNilTime

func IsNilTime(t time.Time) bool

是否为空时间

func RandId

func RandId() int

Types

This section is empty.

Jump to

Keyboard shortcuts

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