go GOAL 2: Printing the Clock

2026-08-30 浏览 (1)

GOAL 2: Printing the Clock

Notes

  • Note main.go file contains the solution of the previous step.
  • "solution" folder contains the solution for this step.

Challenge Steps

  1. Get the current time

  2. Get the current hour, minute and second from the current time

  3. Create the clock array by getting the digits from the digits array

  4. Print the clock by using the clock array

  5. Create a separator array (it's also a placeholder type)

  6. Add the separators into the correct positions of the clock array

你可能感兴趣的文章

go main

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