- 1

Go language question. M facing issue in this question (below) help.

You are building a Timer app that should count up to a given number. Your program needs to take a number as input and make the Timer tick that number of times. The code in main initializes a Timer and takes a number as input. Then it calls the tick() method for the Timer the given number of times. Define the Timer struct with two fields: id and value, and define the tick() method, which should increment the value by one and output its current value.

12th Jun 2021, 3:53 PM
Chinmay Anand
Chinmay Anand - avatar
1 Respuesta
+ 3
Hi! Please, show us your code attempt! Thx!
12th Jun 2021, 4:04 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar