looputil

package
v0.0.0-...-d65d504 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(attempts int, sleep time.Duration, fn func() error) (err error)

执行函数如果失败则重试 次数,间隔,执行内容

func StartDailyFunc

func StartDailyFunc(hour, min int, fn func())

每天固定时间执行一次函数

func StartIntervalFunc

func StartIntervalFunc(interval time.Duration, fn func())

每隔一段时间就执行一次函数

Types

This section is empty.

Jump to

Keyboard shortcuts

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