はじめに
この改訂版のチャレンジでは、Square()
関数を実装した既存の Go パッケージ (challengeproject/mathutil
) を使用します。あなたの目標は、Square()
をインポートして呼び出すための基本的なプレースホルダーを持つ main.go
ファイルを作成することです。プレースホルダーの TODO
を置き換えた後、プログラムを実行すると、指定された整数の二乗結果が出力されるはずです(例えば、整数が 5 の場合は 25)。
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/structs("Structs")
go/FunctionsandControlFlowGroup -.-> go/functions("Functions")
subgraph Lab Skills
go/structs -.-> lab-435676{{"数学ユーティリティパッケージの構築"}}
go/functions -.-> lab-435676{{"数学ユーティリティパッケージの構築"}}
end