{"id":184393,"date":"2024-05-08T22:08:02","date_gmt":"2024-05-08T14:08:02","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/184393.html"},"modified":"2024-05-08T22:08:06","modified_gmt":"2024-05-08T14:08:06","slug":"%e8%83%bd%e5%a4%9f%e5%86%99go%e8%af%ad%e8%a8%80%e7%9a%84%e5%9c%a8%e7%ba%bf%e7%bc%96%e8%be%91%e5%99%a8%e6%9c%89%e5%93%aa%e4%ba%9b","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/184393.html","title":{"rendered":"\u80fd\u591f\u5199go\u8bed\u8a00\u7684\u5728\u7ebf\u7f16\u8f91\u5668\u6709\u54ea\u4e9b"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27075607\/a4493957-34c9-4460-958a-97e8398e36c8.webp\" alt=\"\u80fd\u591f\u5199go\u8bed\u8a00\u7684\u5728\u7ebf\u7f16\u8f91\u5668\u6709\u54ea\u4e9b\" \/><\/p>\n<p><p>\u80fd\u591f\u5199Go\u8bed\u8a00\u7684\u5728\u7ebf\u7f16\u8f91\u5668\u5305\u62ec<strong>The Go Playground<\/strong>\u3001<strong>Repl.it<\/strong>\u3001<strong>GDB Online<\/strong>\u3001<strong>Go Compiler Explorer<\/strong>\u3002\u8fd9\u4e9b\u7f16\u8f91\u5668\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u7f51\u9875\u754c\u9762\uff0c\u5141\u8bb8\u7528\u6237\u5199\u5165\u3001\u7f16\u8bd1\u548c\u8fd0\u884cGo\u8bed\u8a00\u4ee3\u7801\uff0c\u65e0\u9700\u5728\u672c\u5730\u8ba1\u7b97\u673a\u5b89\u88c5Go\u7f16\u7a0b\u73af\u5883\u3002<\/p>\n<\/p>\n<p><p><strong>THE GO PLAYGROUND<\/strong><\/p>\n<\/p>\n<p><p>Go\u5b98\u65b9\u63d0\u4f9b\u7684The Go Playground\u662f\u4e00\u4e2a\u975e\u5e38\u53d7\u6b22\u8fce\u7684\u9009\u62e9\uff0c\u56e0\u5176\u7b80\u6d01\u6027\u548c\u95ed\u73af\u73af\u5883\u3002\u7528\u6237\u53ef\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u8f7b\u677e\u7f16\u5199Go\u4ee3\u7801\u5e76\u89c2\u5bdf\u8f93\u51fa\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u7b80\u5355\u6613\u7528<\/strong>\uff1a<\/p>\n<p>Go Playground \u7684\u754c\u9762\u975e\u5e38\u7b80\u6d01\uff0c\u4f7f\u7528\u6237\u53ef\u4ee5\u8fc5\u901f\u4e13\u6ce8\u4e8e\u7f16\u7801\u800c\u4e0d\u662f\u73af\u5883\u914d\u7f6e\u3002\u5b83\u8fd8\u63d0\u4f9b\u4e86\u5171\u4eab\u4ee3\u7801\u7684\u529f\u80fd\uff0c\u5141\u8bb8\u7528\u6237\u901a\u8fc7URL\u4e0e\u4ed6\u4eba\u5206\u4eab\u81ea\u5df1\u7684Go\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u5168\u6c99\u76d2<\/strong>\uff1a<\/p>\n<p>\u6240\u6709\u4ee3\u7801\u90fd\u5728\u670d\u52a1\u5668\u4e0a\u7684\u6c99\u76d2\u73af\u5883\u4e2d\u6267\u884c\uff0c\u4fdd\u8bc1\u4e86\u8fd0\u884c\u73af\u5883\u7684\u5b89\u5168\u6027\u3002\u8fd9\u610f\u5473\u7740\u7528\u6237\u53ef\u4ee5\u81ea\u7531\u5b9e\u9a8c\uff0c\u800c\u4e0d\u5fc5\u62c5\u5fc3\u4f1a\u5f71\u54cd\u5230\u81ea\u5df1\u7684\u8ba1\u7b97\u673a\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p><strong>REPL.IT<\/strong><\/p>\n<\/p>\n<p><p>Repl.it\u662f\u4e00\u4e2a\u529f\u80fd\u4e30\u5bcc\u7684\u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u5b83\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecGo\uff0c\u63d0\u4f9b\u4e86\u4ee3\u7801\u7f16\u5199\u3001\u8fd0\u884c\u3001\u8c03\u8bd5\u751a\u81f3\u662f\u534f\u4f5c\u7f16\u7a0b\u7684\u80fd\u529b\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u534f\u4f5c\u7279\u6027<\/strong>\uff1a<\/p>\n<p>\u7528\u6237\u53ef\u4ee5\u5b9e\u65f6\u4e0e\u5176\u4ed6\u7528\u6237\u5171\u540c\u7f16\u8f91\u540c\u4e00\u4efd\u4ee3\u7801\uff0c\u7c7b\u4f3cGoogle Docs\u7684\u5b9e\u65f6\u534f\u4f5c\u529f\u80fd\u3002\u8fd9\u662fRepl.it\u7684\u4e00\u4e2a\u7a81\u51fa\u7279\u70b9\uff0c\u8ba9\u8fdc\u7a0b\u5b66\u4e60\u4e0e\u534f\u4f5c\u7f16\u7a0b\u6210\u4e3a\u53ef\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u96c6\u6210\u5f00\u53d1\u73af\u5883<\/strong>\uff1a<\/p>\n<p>\u5c3d\u7ba1Repl.it\u662f\u5728\u7ebf\u7684\uff0c\u5b83\u63d0\u4f9b\u7684\u529f\u80fd\u5374\u4e0e\u672c\u5730\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u76f8\u4f3c\u3002\u7528\u6237\u53ef\u4ee5\u5728Repl.it\u4e2d\u627e\u5230\u6587\u4ef6\u6d4f\u89c8\u5668\u3001\u7ec8\u7aef\u3001\u8c03\u8bd5\u5de5\u5177\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p><strong>GDB ONLINE<\/strong><\/p>\n<\/p>\n<p><p>GDB Online Go Compiler\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u5728\u7ebfGo\u7f16\u8f91\u5668\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u8fd9\u4e2a\u5e73\u53f0\u4e0a\u7f16\u5199\u3001\u7f16\u8bd1\u548c\u6267\u884cGo\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u8c03\u8bd5\u652f\u6301<\/strong>\uff1a<\/p>\n<p>\u8be5\u5e73\u53f0\u63d0\u4f9b\u4e86\u57fa\u4e8eWeb\u7684GDB\u8c03\u8bd5\u5668\uff0c\u8fd9\u4f7f\u5f97\u5728\u7f16\u5199Go\u7a0b\u5e8f\u65f6\u53ef\u4ee5\u8fdb\u884c\u65ad\u70b9\u3001\u6b65\u8fdb\u548c\u67e5\u770b\u5806\u6808\u4fe1\u606f\u7b49\u8c03\u8bd5\u64cd\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u5206\u4eab<\/strong>\uff1a<\/p>\n<p>\u7528\u6237\u53ef\u4ee5\u5206\u4eab\u81ea\u5df1\u7684\u4ee3\u7801\u548c\u8f93\u51fa\u7ed3\u679c\uff0c\u4fbf\u4e8e\u6559\u5b66\u548c\u56e2\u961f\u534f\u4f5c\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p><strong>GO COMPILER EXPLORER<\/strong><\/p>\n<\/p>\n<p><p>Go Compiler Explorer\u662f\u4e00\u4e2a\u4e13\u5fc3\u4e8e\u4ee3\u7801\u4f18\u5316\u548c\u5b66\u4e60\u7684\u5de5\u5177\uff0c\u5b83\u5141\u8bb8\u7528\u6237\u67e5\u770b\u81ea\u5df1\u7684Go\u4ee3\u7801\u5982\u4f55\u88ab\u7f16\u8bd1\u5668\u4f18\u5316\u3002<\/p>\n<\/p>\n<ul>\n<li>\n<p><strong>\u7f16\u8bd1\u8f93\u51fa\u67e5\u770b<\/strong>\uff1a<\/p>\n<p>\u7528\u6237\u4e0d\u4ec5\u80fd\u591f\u7f16\u8bd1\u548c\u6267\u884c\u4ee3\u7801\uff0c\u8fd8\u80fd\u67e5\u770b\u7f16\u8bd1\u5668\u751f\u6210\u7684\u6c47\u7f16\u6307\u4ee4\uff0c\u8fd9\u5bf9\u4e8e\u6df1\u5165\u7406\u89e3Go\u8bed\u8a00\u7684\u6027\u80fd\u4f18\u5316\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4ee3\u7801\u6ce8\u91ca<\/strong>\uff1a<\/p>\n<p>Go Compiler Explorer\u63d0\u4f9b\u4e86\u5728\u4ee3\u7801\u65c1\u8fb9\u5c55\u793a\u7f16\u8bd1\u8f93\u51fa\u7684\u529f\u80fd\uff0c\u5e2e\u52a9\u7528\u6237\u7406\u89e3\u5404\u4e2a\u4ee3\u7801\u6bb5\u7684\u4f5c\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<\/ul>\n<p><p>\u4ee5\u4e0a\u5728\u7ebf\u7f16\u8f91\u5668\u5bf9\u4e8e\u5b66\u4e60Go\u8bed\u8a00\u548c\u8fdb\u884c\u5feb\u901f\u7684\u4ee3\u7801\u5b9e\u9a8c\u90fd\u975e\u5e38\u6709\u7528\uff0c\u56e0\u4e3a\u5b83\u4eec\u7701\u53bb\u4e86\u5728\u672c\u5730\u673a\u5668\u4e0a\u914d\u7f6e\u73af\u5883\u7684\u8fc7\u7a0b\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u76f4\u63a5\u8df3\u5230\u7f16\u7801\u5b9e\u8df5\u3002\u65e0\u8bba\u4f60\u662f\u4e00\u4e2a\u521d\u5b66\u8005\u8fd8\u662f\u7ecf\u9a8c\u4e30\u5bcc\u7684\u5f00\u53d1\u8005\uff0c\u8fd9\u4e9b\u5de5\u5177\u90fd\u53ef\u63d0\u9ad8\u4f60\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u8bf7\u95ee\u6709\u54ea\u4e9b\u503c\u5f97\u4f7f\u7528\u7684\u5728\u7ebfgo\u8bed\u8a00\u7f16\u8f91\u5668\uff1f<\/strong><\/p>\n<p>\u5728\u76ee\u524d\u7684\u5e02\u573a\u4e0a\uff0c\u6709\u8bb8\u591a\u4f18\u79c0\u7684\u5728\u7ebfgo\u8bed\u8a00\u7f16\u8f91\u5668\u4f9b\u60a8\u9009\u62e9\u3002\u4e00\u4e9b\u503c\u5f97\u63a8\u8350\u7684\u7f16\u8f91\u5668\u5305\u62ec\uff1aA. Go Playground\uff08goplay.space\uff09\uff0c\u5b83\u662f\u5b98\u65b9\u63d0\u4f9b\u7684\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u7684\u5728\u7ebfgo\u8bed\u8a00\u7f16\u8f91\u5668\uff0c\u529f\u80fd\u5f3a\u5927\u4e14\u7b80\u5355\u6613\u7528\uff1bB. Replit\uff08replit.com\uff09\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u65b9\u4fbf\u7684\u5f00\u53d1\u73af\u5883\uff0c\u652f\u6301\u5b9e\u65f6\u534f\u4f5c\u548c\u5206\u4eab\u4ee3\u7801\uff1bC. CodeSandBox\uff08codesandbox.io\uff09\uff0c\u5b83\u652f\u6301\u591a\u79cd\u8bed\u8a00\uff0c\u5305\u62ecgo\u8bed\u8a00\uff0c\u800c\u4e14\u6709\u8bb8\u591a\u6709\u7528\u7684\u7279\u6027\uff0c\u5982\u81ea\u52a8\u4fdd\u5b58\u548c\u4ee3\u7801\u7248\u672c\u63a7\u5236\u7b49\u3002<\/p>\n<p><strong>2. \u6709\u6ca1\u6709\u80fd\u591f\u5728\u7ebf\u7f16\u8f91\u548c\u8fd0\u884cgo\u8bed\u8a00\u4ee3\u7801\u7684\u5e73\u53f0\uff1f<\/strong><\/p>\n<p>\u5f53\u7136\u6709\uff01\u4e8b\u5b9e\u4e0a\uff0c\u8bb8\u591a\u5728\u7ebfgo\u8bed\u8a00\u7f16\u8f91\u5668\u4e0d\u4ec5\u53ef\u4ee5\u7f16\u8f91\u4ee3\u7801\uff0c\u8fd8\u53ef\u4ee5\u7acb\u5373\u8fd0\u884c\u4f60\u7684\u4ee3\u7801\u5e76\u67e5\u770b\u7ed3\u679c\u3002\u6bd4\u5982\uff0cGo Playground\u548cReplit\u5c31\u662f\u8fd9\u6837\u7684\u5e73\u53f0\u3002\u4f60\u53ea\u9700\u5c06\u4f60\u7684go\u4ee3\u7801\u7c98\u8d34\u5230\u7f16\u8f91\u5668\u4e2d\uff0c\u70b9\u51fb\u8fd0\u884c\u6309\u94ae\uff0c\u4f60\u5c31\u80fd\u591f\u5b9e\u65f6\u5730\u770b\u5230\u4ee3\u7801\u7684\u6267\u884c\u7ed3\u679c\u4e86\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u5728\u7ebfgo\u8bed\u8a00\u7f16\u8f91\u5668\uff1f<\/strong><\/p>\n<p>\u5728\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7684\u5728\u7ebfgo\u8bed\u8a00\u7f16\u8f91\u5668\u65f6\uff0c\u4f60\u5e94\u8be5\u8003\u8651\u4ee5\u4e0b\u51e0\u4e2a\u56e0\u7d20\uff1aA. \u529f\u80fd\u548c\u6613\u7528\u6027\uff1a\u786e\u4fdd\u7f16\u8f91\u5668\u80fd\u591f\u6ee1\u8db3\u4f60\u7684\u9700\u6c42\uff0c\u5e76\u4e14\u4f7f\u7528\u8d77\u6765\u7b80\u5355\u65b9\u4fbf\uff1bB. \u5b9e\u65f6\u8fd0\u884c\u529f\u80fd\uff1a\u5982\u679c\u4f60\u9700\u8981\u9891\u7e41\u6d4b\u8bd5\u548c\u8c03\u8bd5\u4ee3\u7801\uff0c\u5efa\u8bae\u9009\u62e9\u4e00\u4e2a\u53ef\u4ee5\u5b9e\u65f6\u8fd0\u884c\u4ee3\u7801\u5e76\u67e5\u770b\u7ed3\u679c\u7684\u7f16\u8f91\u5668\uff1bC. \u534f\u4f5c\u548c\u5206\u4eab\u529f\u80fd\uff1a\u5982\u679c\u4f60\u9700\u8981\u4e0e\u4ed6\u4eba\u4e00\u8d77\u7f16\u5199\u548c\u5171\u4eab\u4ee3\u7801\uff0c\u9009\u62e9\u4e00\u4e2a\u652f\u6301\u5b9e\u65f6\u534f\u4f5c\u548c\u5206\u4eab\u4ee3\u7801\u7684\u5e73\u53f0\u4f1a\u66f4\u65b9\u4fbf\uff1bD. \u793e\u533a\u652f\u6301\uff1a\u5982\u679c\u4f60\u9047\u5230\u95ee\u9898\u6216\u9700\u8981\u5bfb\u6c42\u5e2e\u52a9\uff0c\u8003\u8651\u9009\u62e9\u4e00\u4e2a\u6709\u6d3b\u8dc3\u7684\u7528\u6237\u793e\u533a\u7684\u7f16\u8f91\u5668\uff0c\u8fd9\u6837\u4f60\u80fd\u591f\u66f4\u5bb9\u6613\u5730\u83b7\u5f97\u5e2e\u52a9\u548c\u89e3\u51b3\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u80fd\u591f\u5199Go\u8bed\u8a00\u7684\u5728\u7ebf\u7f16\u8f91\u5668\u5305\u62ecThe Go Playground\u3001Repl.it\u3001GDB Online\u3001Go [&hellip;]","protected":false},"author":3,"featured_media":184398,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/184393"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=184393"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/184393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/184398"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=184393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=184393"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=184393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}