# utimer **Repository Path**: cloudapex/utimer ## Basic Information - **Project Name**: utimer - **Description**: 全局定时器 - **Primary Language**: Go - **License**: BSD-3-Clause-Clear - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2020-06-16 - **Last Updated**: 2022-05-05 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # utimer #### 介绍 全局定时器 #### 软件架构 软件架构说明 #### 安装教程 go get -u gitee.com/cloudapex/utimer #### 使用说明 import "gitee.com/cloudapex/utimer" func somefun(){ // 每隔10s钟执行一次 utimer.TimerHandler(10*time.Second,func(now time.Time)bool{.... return true}) // 每天凌晨1点钟执行一次 utimer.DayerHandler(1*time.Hour,func(now time.Time)bool{.... return true}) }