diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-04 17:25:56 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-04-04 17:25:56 +0200 |
commit | ef3b1d89bba80854172eee9e8693f72ad1d768bc (patch) | |
tree | 1d29abe56aab93031246505a6b27cb9948291b82 /src/c_go2work.go | |
parent | Time update (diff) | |
download | go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.gz go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.bz2 go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.xz go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.tar.zst go2work-ef3b1d89bba80854172eee9e8693f72ad1d768bc.zip |
Update
Diffstat (limited to 'src/c_go2work.go')
-rw-r--r-- | src/c_go2work.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/c_go2work.go b/src/c_go2work.go index f919d1b..e11dab4 100644 --- a/src/c_go2work.go +++ b/src/c_go2work.go @@ -39,7 +39,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * go2work: src/c_go2work.go - * Mon Apr 4 17:06:21 CEST 2022 + * Mon Apr 4 17:25:53 CEST 2022 * Joe * * The main. @@ -50,9 +50,9 @@ package main import ( "log" "os" - "time" "strconv" "strings" + "time" ) func main() { @@ -103,6 +103,11 @@ func main() { } curr_t = get_time() print_time_left(curr_t, dest_t) + main_loop(dest_t, options) +} + +func main_loop(dest_t [3]byte, options Options) { + var curr_t [3]byte ticker := time.NewTicker(INTERVAL * time.Millisecond) quit := make(chan struct{}) for { |