介绍
在这个挑战中,你将为一个小型团队开发一个任务管理系统。你的目标是使用 Go 的条件逻辑创建一个程序,根据任务的完成状态对任务进行分类。任务是实现 sortTask
函数,根据输入的任务状态将任务分类为 "待办"、"进行中" 和 "已完成" 列表。
Skills Graph
%%%%{init: {'theme':'neutral'}}%%%%
flowchart RL
go(("Golang")) -.-> go/DataTypesandStructuresGroup(["Data Types and Structures"])
go(("Golang")) -.-> go/FunctionsandControlFlowGroup(["Functions and Control Flow"])
go/DataTypesandStructuresGroup -.-> go/strings("Strings")
go/FunctionsandControlFlowGroup -.-> go/for("For")
go/FunctionsandControlFlowGroup -.-> go/if_else("If Else")
subgraph Lab Skills
go/strings -.-> lab-436418{{"使用条件逻辑对任务进行分类"}}
go/for -.-> lab-436418{{"使用条件逻辑对任务进行分类"}}
go/if_else -.-> lab-436418{{"使用条件逻辑对任务进行分类"}}
end