回答編集履歴

1

環境とアドバイス追記

2022/08/30 00:44

投稿

nobonobo
nobonobo

スコア3367

test CHANGED
@@ -1,3 +1,6 @@
1
+ 当方macOS12.5.1, Go1.19で以下の手順で何も問題なく動作しました。
2
+ もしかするとClang周りの環境も問題かもしれません、Apple提供のCommandLineToolsの最新版などに更新してみてはどうでしょうか?
3
+
1
4
  ```
2
5
  go mod init sample
3
6
  ```