go Exercises

2026-08-30 浏览 (1)

Exercises

These exercises will reinforce your knowledge of manipulating arrays. You will prove yourself that you can write easy to maintain Go programs.

  1. Refactor

In this exercise, you will refactor the project to multiple files by moving all the placeholders. This will make the project easy to maintain down the road.

  1. Set an Alarm

You will print " ALARM! " every 10 seconds.

  1. Split Second

You will display the split second in the clock, you will need to update the clock every 1/10th of a second instead of every second.

  1. Ticker

This is a HARD EXERCISE. You will slide the clock animation from right-to-left. After this exercise, you will truly feel that you've mastered everything you've learned so far.

你可能感兴趣的文章

go main

go main

go main

go main

go main

go Header

go main

go main

go main

go main

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/ECB6FExC