0
golang course
Someone has solved lesson 31 project code (Ticking Timer) from the "Pointers & Structs" block of the golang course, can you help me? //is the only one I need to finish the course
1 Odpowiedź
+ 2
Emmanuel
You need to make a struct with id and name.
A method tick() which will increase value by 1 and print value just after incrementing like:
timer.value += 1
fmt.println(timer.value)