aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_go2work.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_go2work.go')
-rw-r--r--src/c_go2work.go9
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 {