报错内容:
# runtime/cgo
cgo-builtin-prolog:1:10: fatal error: cannot open file '/usr/local/include/stddef.h': Permission denied
#include <stddef.h> /* for ptrdiff_t and size_t below */
^
1 error generated.
但是该目录里好像没有这个文件:
❯ ls -al /usr/local/include/stddef.h
ls: /usr/local/include/stddef.h: No such file or directory
不用在意。
解决方式:
sudo chown -R $(whoami) /usr/local/include
https://youtrack.jetbrains.com/issue/GO-13382/Debugging-Go-pr...
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。