Skip to content

goprag/gotick

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gotick

A simple go package to run periodic task

Usage

  1. Import package

    import "gotick/goptick"
    
  2. Define

    // Duration
    d := 1 * time.Second
    
    // Function
    func foo(q chan bool){
    
    }
    
    
  3. Invoke

    tic.Gotick(1*d, foo)
    

About

Periodic task

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages