title: CRON JOB in GOLANG
body: <p>I AM USING IN CRON  PKG  <a href="https://github.com/jasonlvhit/gocron/blob/master/gocron.go" rel="nofollow">https://github.com/jasonlvhit/gocron/blob/master/gocron.go</a></p>
  
  <pre><code>import (
      "fmt"
      "time"
  
      "github.com/claudiu/gocron"
  )
  
  func task() {
      fmt.Println("I am runnning task.", time.Now())
  }
  func vijay() {
      fmt.Println("I am runnning vijay.", time.Now())
  }
  
  func main() {
      go test()
  
      gocron.Start()
      s := gocron.NewScheduler()
      gocron.Every(5).Seconds().Do(task)
      gocron.Every(10).Seconds().Do(vijay)
  
      &lt;-s.Start()
  
  }
  func test() {
      time.Sleep(20 * time.Second)
      gocron.Clear()
      fmt.Println("All task removed")
  }
  </code></pre>
  
  <p>My problem is after removing all job, my program is still executing </p>
  
  <p>i want to break the exection after removing all jobs </p>
  
  <p>please help me out ,i am not able to find out how to do it ,
  i tried to change the PKG source code also but not able to find out the way to do it </p>
  
  <p>thank you all </p>