{"id":2485,"date":"2021-12-18T23:10:37","date_gmt":"2021-12-18T14:10:37","guid":{"rendered":"https:\/\/nobunobu1717.site\/?p=2485"},"modified":"2022-10-02T08:59:33","modified_gmt":"2022-10-01T23:59:33","slug":"post-2485","status":"publish","type":"post","link":"https:\/\/nobunobu1717.site\/?p=2485","title":{"rendered":"\u3010\u6280\u8853\u66f8\u611f\u60f3\u3011Go\u8a00\u8a9e\u30cf\u30f3\u30ba\u30aa\u30f3\u306fWEB\u3084\u30c4\u30fc\u30eb\u306a\u3069\u5e45\u5e83\u304f\u30ab\u30d0\u30fc\u3057\u305f\u66f8\u7c4d"},"content":{"rendered":"<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">Contents<\/p><ul class=\"toc_list\"><li><a href=\"#i\"><span class=\"toc_number toc_depth_1\">1<\/span> \u6982\u8981<\/a><\/li><li><a href=\"#i-2\"><span class=\"toc_number toc_depth_1\">2<\/span> \u66f8\u7c4d\u6982\u8981<\/a><\/li><li><a href=\"#i-3\"><span class=\"toc_number toc_depth_1\">3<\/span> \u5185\u5bb9\u306e\u307e\u3068\u3081\u3068\u611f\u60f3<\/a><\/li><li><a href=\"#i-4\"><span class=\"toc_number toc_depth_1\">4<\/span> \u8aad\u66f8\u30ce\u30fc\u30c8(\u500b\u4eba\u7684\u306a\u307e\u3068\u3081)<\/a><\/li><\/ul><\/div>\n<h2><span id=\"i\">\u6982\u8981<\/span><\/h2>\n<p>\u300cGo\u8a00\u8a9e\u30cf\u30f3\u30ba\u30aa\u30f3\u300d\u3092\u8aad\u3093\u3060\u306e\u3067\u611f\u60f3\u3092\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>2022\/1\/2\u8ffd\u8a18<\/p>\n<p>Go\u8a00\u8a9e\u306e\u66f8\u7c4d\u3068\u3057\u3066\u307f\u3093\u306a\u306eGo\u8a00\u8a9e\u306e\u611f\u60f3\u3092\u4e0b\u8a18\u3067\u516c\u958b\u3057\u3066\u3044\u307e\u3059\u3002\u5408\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"kOupljHZQi\"><p><a href=\"https:\/\/nobunobu1717.site\/?p=2572\">\u3010\u6280\u8853\u66f8\u611f\u60f3\u3011\u307f\u3093\u306a\u306eGo\u8a00\u8a9e \u6539\u8a022\u7248 \u306f\u5e45\u5e83\u3044\u30c6\u30fc\u30de\u3092\u6271\u3063\u305f\u5e45\u5e83\u3044\u30aa\u30e0\u30cb\u30d0\u30b9\u7684\u306a\u6280\u8853\u66f8<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u3010\u6280\u8853\u66f8\u611f\u60f3\u3011\u307f\u3093\u306a\u306eGo\u8a00\u8a9e \u6539\u8a022\u7248 \u306f\u5e45\u5e83\u3044\u30c6\u30fc\u30de\u3092\u6271\u3063\u305f\u5e45\u5e83\u3044\u30aa\u30e0\u30cb\u30d0\u30b9\u7684\u306a\u6280\u8853\u66f8&#8221; &#8212; nobu blog\" src=\"https:\/\/nobunobu1717.site\/?p=2572&#038;embed=true#?secret=6xBnFQT56w#?secret=kOupljHZQi\" data-secret=\"kOupljHZQi\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<div class=\"kattene\">\n    <div class=\"kattene__imgpart\"><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/B08XYQ1RS3\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B08XYQ1RS3&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=8e6eef08d4a28ed46554bfb25486e673\"><img width=\"160\" height=\"160\" loading=\"lazy\" src=\"https:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;MarketPlace=JP&amp;ASIN=B08XYQ1RS3&amp;ServiceVersion=20070822&amp;ID=AsinImage&amp;WS=1&amp;Format=_SL250_&amp;tag=nobu17171009-22\" class=\"kattene__shadow\" ><\/a><\/div>\n    <div class=\"kattene__infopart\">\n      <div class=\"kattene__title\"><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/B08XYQ1RS3\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B08XYQ1RS3&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=8e6eef08d4a28ed46554bfb25486e673\">Go\u8a00\u8a9e\u30cf\u30f3\u30ba\u30aa\u30f3<\/a><\/div>\n      <div class=\"kattene__description\">\u672c\u66f8\u306f\u3001Go\u8a00\u8a9e\u3092\u5b9f\u969b\u306b\u624b\u3092\u52d5\u304b\u3057\u306a\u304c\u3089\u57fa\u790e\u304b\u3089\u5b9f\u8df5\u7684\u306a\u5185\u5bb9\u307e\u3067\u5b66\u3076\u66f8\u7c4d\u3067\u3059\u3002\u6587\u6cd5\u3084\u4ed5\u69d8\u306a\u3069\u3092\u3001\u30cf\u30f3\u30ba\u30aa\u30f3\u5f62\u5f0f\u3067\u5b66\u3079\u308b\u306e\u3067\u3001\u5ea7\u5b66\u304c\u82e6\u624b\u306a\u4eba\u3082\u5b89\u5fc3\u3057\u3066\u5b66\u7fd2\u3067\u304d\u307e\u3059\u3002<\/div>\n      <div class=\"kattene__btns __one\"><div><a class=\"kattene__btn __orange\" target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/B08XYQ1RS3\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B08XYQ1RS3&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=8e6eef08d4a28ed46554bfb25486e673\">Amazon<\/a><\/div><\/div><\/div><\/div>\n<div class=\"kattene\">\n    <div class=\"kattene__imgpart\"><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/B07VPSXF6N\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B07VPSXF6N&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=64d9a90a97e001767d76fa5c2883a080\"><img width=\"160\" height=\"160\" loading=\"lazy\" src=\"https:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;MarketPlace=JP&amp;ASIN=B07VPSXF6N&amp;ServiceVersion=20070822&amp;ID=AsinImage&amp;WS=1&amp;Format=_SL250_&amp;tag=nobu17171009-22\" class=\"kattene__shadow\" ><\/a><\/div>\n    <div class=\"kattene__infopart\">\n      <div class=\"kattene__title\"><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/B07VPSXF6N\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B07VPSXF6N&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=64d9a90a97e001767d76fa5c2883a080\">\u6539\u8a022\u7248 \u307f\u3093\u306a\u306eGo\u8a00\u8a9e<\/a><\/div>\n      <div class=\"kattene__description\">2016\u5e74\u306b\u520a\u884c\u3057\u597d\u8a55\u3044\u305f\u3060\u3044\u305f\u300c\u307f\u3093\u306a\u306eGo\u8a00\u8a9e\u300d\u306e\u6539\u8a02\u7248\u3067\u3059\u3002\u5168\u7ae0\u3092\u6700\u65b0\u306e\u5185\u5bb9\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3001\u300c\u7b2c7\u7ae0 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u6271\u3044\u65b9\u300d\u3092\u65b0\u898f\u3067\u66f8\u304d\u4e0b\u308d\u3057\u307e\u3059\u3002\u307e\u3059\u307e\u3059\u6ce8\u76ee\u306e\u96c6\u307e\u308bGo\u3092\u73fe\u5834\u3067\u4f7f\u3046\u305f\u3081\u306e\u30ce\u30a6\u30cf\u30a6\u304c1\u518a\u306b\u51dd\u7e2e\u3055\u308c\u3066\u3044\u307e\u3059\uff01<\/div>\n      <div class=\"kattene__btns __one\"><div><a class=\"kattene__btn __orange\" target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/B07VPSXF6N\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=B07VPSXF6N&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=64d9a90a97e001767d76fa5c2883a080\">Amazon<\/a><\/div><\/div><\/div><\/div>\n<div class=\"kattene\">\n    <div class=\"kattene__imgpart\"><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/4297125196\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=4297125196&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=6dca0ab95a38846ab66f7ba8007f2718\"><img width=\"160\" height=\"160\" loading=\"lazy\" src=\"https:\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;MarketPlace=JP&amp;ASIN=4297125196&amp;ServiceVersion=20070822&amp;ID=AsinImage&amp;WS=1&amp;Format=_SL250_&amp;tag=nobu17171009-22\" class=\"kattene__shadow\" ><\/a><\/div>\n    <div class=\"kattene__infopart\">\n      <div class=\"kattene__title\"><a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/4297125196\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=4297125196&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=6dca0ab95a38846ab66f7ba8007f2718\">\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8\u305f\u3061\u306eGo\u8a00\u8a9e<\/a><\/div>\n      <div class=\"kattene__description\">\u672c\u66f8\u306f\u3001\u4e2d\u7d1a\u4ee5\u4e0a\u306eGo\u30d7\u30ed\u30b0\u30e9\u30de\u30fc\u304c\u30c4\u30fc\u30eb\u958b\u767a\u30fb\u30d7\u30ed\u30c0\u30af\u30c8\u958b\u767a\u3067\u5fc5\u8981\u3068\u3055\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30c6\u30af\u30cb\u30c3\u30af\u304a\u3088\u3073\u5468\u8fba\u77e5\u8b58\u3092\u5b66\u3076\u305f\u3081\u306e\u5b9f\u8df5\u96c6\u3067\u3059\u3002<\/div>\n      <div class=\"kattene__btns __one\"><div><a class=\"kattene__btn __orange\" target=\"_blank\" rel=\"noopener\" href=\"https:\/\/www.amazon.co.jp\/gp\/offer-listing\/4297125196\/ref=as_li_tl?ie=UTF8&amp;camp=247&amp;creative=1211&amp;creativeASIN=4297125196&amp;linkCode=am2&amp;tag=nobu17171009-22&amp;linkId=6dca0ab95a38846ab66f7ba8007f2718\">Amazon<\/a><\/div><\/div><\/div><\/div>\n<p>&nbsp;<\/p>\n<p>\u6280\u8853\u66f8\u306e\u30bb\u30fc\u30eb\u3068\u304a\u3059\u3059\u3081\u66f8\u7c4d\u3092\u7d39\u4ecb\u3057\u3066\u3044\u307e\u3059\u3002\u5408\u308f\u305b\u3066\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"ZNYU2xNKKi\"><p><a href=\"https:\/\/nobunobu1717.site\/?p=2713\">\u301010\/13\u307e\u3067\u3011Amazon Kindle\u3067\u6280\u8853\u66f8\u304c\u534a\u984d\u30bb\u30fc\u30eb\u4e2d\u3002\u73fe\u5f79\u30a8\u30f3\u30b8\u30cb\u30a2\u304b\u3089\u898b\u305f\u30aa\u30b9\u30b9\u30e1\u66f8\u7c4d\u3082\u7d39\u4ecb<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;\u301010\/13\u307e\u3067\u3011Amazon Kindle\u3067\u6280\u8853\u66f8\u304c\u534a\u984d\u30bb\u30fc\u30eb\u4e2d\u3002\u73fe\u5f79\u30a8\u30f3\u30b8\u30cb\u30a2\u304b\u3089\u898b\u305f\u30aa\u30b9\u30b9\u30e1\u66f8\u7c4d\u3082\u7d39\u4ecb&#8221; &#8212; nobu blog\" src=\"https:\/\/nobunobu1717.site\/?p=2713&#038;embed=true#?secret=3SgW7xPOUK#?secret=ZNYU2xNKKi\" data-secret=\"ZNYU2xNKKi\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<h2><span id=\"i-2\">\u66f8\u7c4d\u6982\u8981<\/span><\/h2>\n<h3>\u3069\u3093\u306a\u672c\uff1f<\/h3>\n<blockquote><p>Google\u304c\u958b\u767a\u3057\u305fGo\u8a00\u8a9e\u306f\u3001\u5c11\u3057\u305a\u3064\u30b7\u30a7\u30a2\u3092\u5e83\u3052\u3066\u3001\u3044\u307e\u3067\u306f\u300cGo\u8a00\u8a9e\u304c\u4f7f\u3048\u308b\u300d\u3068\u306a\u308c\u3070\u5468\u56f2\u304b\u3089\u4e00\u76ee\u7f6e\u304b\u308c\u308b\u5b58\u5728\u306b\u306a\u308a\u3064\u3064\u3042\u308a\u307e\u3059\u3002\u672c\u66f8\u306f\u3001\u300c\u7fd2\u3046\u3088\u308a\u6163\u308c\u308d\uff01\u300d\u3067Go\u8a00\u8a9e\u306e\u57fa\u790e\u304b\u3089Web\u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30b0\u30e9\u30e0\u307e\u3067\u3001\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u308a\u306a\u304c\u3089\u5b66\u3076\u30cf\u30f3\u30ba\u30aa\u30f3\u30bf\u30a4\u30d7\u306e\u5165\u9580\u66f8\u3067\u3059\u3002\u96fb\u5353\u3001\u8d85\u7c21\u6613\u30a8\u30c7\u30a3\u30bf\u3001Web\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u30c4\u30fc\u30eb\u3001Youtube\u52d5\u753b\u3092\u7ba1\u7406\u3059\u308bWeb\u30a2\u30d7\u30ea\u306a\u3069\u3092\u5b9f\u969b\u306b\u4f5c\u308a\u306a\u304c\u3089\u3001 Go\u8a00\u8a9e\u306e\u4ed5\u7d44\u307f\u3084\u7279\u5fb4\u3092\u5b66\u3073\u307e\u3057\u3087\u3046\u3002<\/p><\/blockquote>\n<ul class=\"biblio\">\n<li>\u638c\u7530\u3000\u6d25\u8036\u4e43 \u8457<\/li>\n<li>2021\u5e7403\u6708 \u767a\u884c<\/li>\n<li>448\u30da\u30fc\u30b8<\/li>\n<li>\u5b9a\u4fa13,080\u5186(\u7a0e\u8fbc)<\/li>\n<\/ul>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h2><span id=\"i-3\">\u5185\u5bb9\u306e\u307e\u3068\u3081\u3068\u611f\u60f3<\/span><\/h2>\n<p>Go\u8a00\u8a9e\u3092\u30cf\u30f3\u30ba\u30aa\u30f3\u5f62\u5f0f\u3067\u5b66\u3093\u3067\u3044\u304f\u5165\u9580\u66f8\u3067\u3059\u3002<\/p>\n<p>\u69cb\u6210\u3068\u3057\u3066\u3001\u524d\u534a\u306f\u3044\u308f\u3086\u308b\u5165\u9580\u66f8\u7684\u306a\u8a00\u8a9e\u4ed5\u69d8\u306e\u8aac\u660e\u306b\u306a\u3063\u3066\u3044\u3066\u3001\u5f8c\u534a\u306fGUI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u307f\u308b\u3068\u3044\u3063\u305f\u5fdc\u7528\u7684\u306a\u8a71\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3046\u3044\u3063\u305f\u8a00\u8a9e\u6587\u6cd5\u306b\u8aac\u660e\u3092\u5272\u3044\u305f\u5165\u9580\u66f8\u3060\u3068\u3001\u5f8c\u534a\u306e\u5fdc\u7528\u7684\u306a\u90e8\u5206\u306f\u8efd\u3044\u7d39\u4ecb\u3060\u3051\u306b\u306a\u308a\u304c\u3061\u3067\u3059\u304c\u3001\u5e45\u5e83\u3044\u30c6\u30fc\u30de\u306e\u5b9f\u88c5\u30b5\u30f3\u30d7\u30eb\u3092\u53d6\u308a\u6271\u3063\u3066\u3044\u308b\u306e\u306f\u7d20\u6674\u3089\u3057\u3044\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30ed\u30b0\u30e9\u30e0\u521d\u5fc3\u8005\u3060\u3068\u5f8c\u534a\u306f\u53b3\u3057\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3042\u308b\u7a0b\u5ea6WEB\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u3092\u958b\u767a\u3057\u305f\u4e8b\u304c\u3042\u308b\u30a8\u30f3\u30b8\u30cb\u30a2\u3067\u3042\u308c\u3070\u3059\u3093\u306a\u308a\u8aad\u3081\u308b\u306e\u3067\u306f\u306a\u3044\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\n\u4e00\u65b9\u3067\u3001\u6700\u65b0\u306eGo\u8a00\u8a9e\u306e\u5165\u9580\u66f8\u7c4d\u3068\u3057\u3066\u3001\u8a18\u8f09\u3059\u3079\u304d\u5185\u5bb9\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u306a\u3044\u306a\u3069\u5185\u5bb9\u306b\u30d0\u30e9\u30c4\u30ad\u304c\u3042\u308b\u306e\u3067\u6ce8\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u826f\u304b\u3063\u305f\u70b9<\/h3>\n<h4>\u5e45\u5e83\u3044\u5185\u5bb9<\/h4>\n<p>Go\u81ea\u4f53\u306e\u8a00\u8a9e\u4ed5\u69d8\u306e\u8aac\u660e\u304b\u3089\u59cb\u307e\u308a\u3001\u5f8c\u534a\u306fGUI\u3084Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306a\u3069\u5b9f\u8df5\u7684\u306a\u5185\u5bb9\u307e\u3067\u542b\u307e\u308c\u3066\u3044\u3066\u3001\u3053\u306e\u624b\u306e\u5165\u9580\u66f8\u3068\u3057\u3066\u306f\u304b\u306a\u308a\u5e45\u5e83\u304f\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>1\u518a\u3067\u3053\u3053\u307e\u3067\u5b66\u3079\u308b\u66f8\u7c4d\u306f\u73cd\u3057\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h3>\u6c17\u306b\u306a\u3063\u305f\u70b9<\/h3>\n<h4>Go module\u306e\u8aac\u660e\u304c\u306a\u3044<\/h4>\n<p>Go\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3084\u30d5\u30a9\u30eb\u30c0\u69cb\u6210\u306b\u304a\u3044\u3066\u3001\u5927\u304d\u306a\u5909\u66f4\u3067\u3042\u308bGo module\u306b\u95a2\u3057\u3066\u306e\u8aac\u660e\u304c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>Go\u306e\u66f8\u7c4d\u3068\u3057\u3066\u306f\u304b\u306a\u308a\u5f8c\u767a\u306a\u306e\u306b\u3082\u95a2\u308f\u3089\u305a\u3053\u306e\u91cd\u8981\u306a\u6a5f\u80fd\u306b\u95a2\u3057\u3066\u8aac\u660e\u304c\u306a\u3044\u306e\u306f\u3061\u3087\u3063\u3068\u6b8b\u5ff5\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u4e00\u90e8\u306e\u30b5\u30f3\u30d7\u30eb\u304c\u53e4\u3044<\/h4>\n<p>\u3053\u308c\u306f\u30bf\u30a4\u30df\u30f3\u30b0\u306e\u554f\u984c\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u8aac\u660e\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bFyne\u3068\u3044\u3046GUI\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u53e4\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u306a\u3063\u3066\u3044\u3066\u3001\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u305b\u3093\u3002<br \/>\n\u516c\u5f0f\u30da\u30fc\u30b8\u7b49\u3092\u78ba\u8a8d\u3059\u308b\u3068v2\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u672c\u66f8\u306fv1\u3067\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>import\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u5909\u66f4\u3060\u3051\u3067\u304b\u306a\u308a\u306e\u90e8\u5206\u306f\u52d5\u304d\u305d\u3046\u3067\u3059\u304c\u3001\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306a\u3069v2\u306e\u7279\u5fb4\u7684\u306a\u6a5f\u80fd\u304c\u4f7f\u308f\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u3061\u3087\u3063\u3068\u6b8b\u5ff5\u3067\u3059\u306d\u3002<\/p>\n<p>&nbsp;<\/p>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h2><span id=\"i-4\">\u8aad\u66f8\u30ce\u30fc\u30c8(\u500b\u4eba\u7684\u306a\u307e\u3068\u3081)<\/span><\/h2>\n<h3>\u7b2c1\u7ae0 Go\u8a00\u8a9e\u3092\u30b9\u30bf\u30fc\u30c8\u3059\u308b<\/h3>\n<p>Go\u8a00\u8a9e\u306e\u601d\u60f3\u3084\u80cc\u666f\u3068\u3001\u74b0\u5883\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u306b\u95a2\u3057\u3066\u307e\u3068\u3081\u3066\u3044\u308b\u7ae0\u3067\u3059\u3002<\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u3068\u3057\u3066\u306fVisual Studio Code(VS Code)\u3092\u4f7f\u7528\u3057\u305f\u969b\u306e\u8aac\u660e\u304c\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h3>\u7b2c2\u7ae0 Go\u306e\u57fa\u672c\u6587\u6cd5<\/h3>\n<p>Go\u8a00\u8a9e\u4e00\u822c\u7684\u306a\u6587\u6cd5\u306b\u95a2\u3057\u3066\u8aac\u660e\u3057\u3066\u3044\u308b\u7ae0\u3067\u3059\u3002<\/p>\n<p>\u5909\u6570\u3001\u578b\u3001for\u30eb\u30fc\u30d7\u3068\u3044\u3063\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306e\u521d\u6b69\u7684\u306a\u8a71\u304c\u30e1\u30a4\u30f3\u306a\u306e\u3067\u3001\u4ed6\u306e\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306e\u7d4c\u9a13\u8005\u306f\u6d41\u3057\u8aad\u307f\u3067\u3082\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e00\u90e8\u306e\u69cb\u6587\u306fGo\u56fa\u6709\u306e\u66f8\u304d\u65b9\u3082\u3042\u3063\u305f\u308a\u3059\u308b\u306e\u3067\u3001\u6c17\u306b\u306a\u308b\u90e8\u5206\u3060\u3051\u3088\u304f\u898b\u3066\u307f\u308b\u306e\u3082\u826f\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>\u5f8c\u534a\u306f\u30af\u30ed\u30fc\u30b8\u30e3\u306a\u3069\u3001\u95a2\u6570\u95a2\u4fc2\u306e\u8a71\u3082\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30b7\u30e7\u30fc\u30c8\u30b9\u30c6\u30fc\u30c8\u30e1\u30f3\u30c8\u4ed8\u304dif<\/h4>\n<p>if\u30c1\u30a7\u30c3\u30af\u306e\u524d\u306b1\u3064\u306e\u51e6\u7406\u3092\u52d5\u304b\u3057\u305f\u4e0a\u3067\u3001\u51e6\u7406\u3092\u5206\u5c90\u3055\u305b\u308b\u65b9\u6cd5\u3002<\/p>\n<p>\u5909\u6570\u306e\u30b9\u30b3\u30fc\u30d7\u304cif\u6587\u5185\u306b\u9650\u5b9a\u3055\u308c\u308b\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>if \u6587 : \u6761\u4ef6 { ... }<\/p>\n<pre class=\"lang:default decode:true\">if n, err := strconv.Atoi(x); err == nil {\r\n  \/\/ err\u304c\u3000nil\u306e\u5834\u5408\r\n} else {\r\n  \/\/ err\u304c nil \u3067\u306a\u3044\u5834\u5408\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h4>for<\/h4>\n<p>for\u5206\u3082\u5c11\u3057\u30af\u30bb\u304c\u3042\u308a\u307e\u3059\u306d\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ \u5b9a\u756a\u306efor\u30eb\u30fc\u30d7\r\nfor i := 0 i &lt; n; i++ {\r\n \/\/ loop\u51e6\u7406\r\n}\r\n\r\n\/\/ \u914d\u5217\u3092\u4f7f\u7528\u3057\u305frange\r\n\/\/ ar\u306f\u914d\u5217\r\ni, d := range ar {\r\n \/\/ i\u304c\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\r\n \/\/ d\u304c\u914d\u5217\u306e\u4e2d\u8eab\r\n}\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h3>\u7b2c3\u7ae0 Go\u306e\u9ad8\u5ea6\u306a\u6587\u6cd5<\/h3>\n<p>Go\u56fa\u6709\u3067\u3042\u3063\u305f\u308a\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u8a00\u8a9e\u3067\u306f\u898b\u3089\u308c\u306a\u3044\u3088\u3046\u306a\u30dd\u30a4\u30f3\u30bf\u306e\u8a71\u306a\u3069\u3001\u5c11\u3057\u9ad8\u5ea6\u306a\u8a71\u304c\u4e2d\u5fc3\u306e\u7ae0\u3067\u3059\u3002<\/p>\n<p>\u3068\u3044\u3063\u305f\u3082\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u521d\u5fc3\u8005\u3067\u306a\u3051\u308c\u3070\u4f55\u304b\u3057\u3089\u306e\u8a00\u8a9e\u3067\u4f3c\u305f\u3088\u3046\u306a\u6a5f\u80fd\u306a\u3069\u306f\u898b\u305f\u4e8b\u304c\u591a\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u4e3b\u306a\u30c8\u30d4\u30c3\u30af\u3068\u3057\u3066\u306f\u3001\u30dd\u30a4\u30f3\u30bf\u3001\u69cb\u9020\u4f53\u3001\u5e73\u884c\u51e6\u7406\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>Go\u306e\u30dd\u30a4\u30f3\u30bf\u306fC\u3084C++\u307b\u3069\u8907\u96d1\u306a\u3082\u306e\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u305d\u3053\u307e\u3067\u6577\u5c45\u304c\u9ad8\u304f\u306f\u7121\u3044\u306e\u3067\u53d6\u308a\u7d44\u307f\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>Go\u306b\u306f\u30af\u30e9\u30b9\u304c\u7121\u304f\u3001\u69cb\u9020\u4f53\u306e\u307f\u3068\u306a\u3063\u3066\u3044\u3066\u3001\u69cb\u9020\u4f53\u306b\u30ec\u30b7\u30fc\u30d0\u30fc\u3068\u3044\u3046\u65b9\u6cd5\u3067\u30e1\u30bd\u30c3\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304f\u30b9\u30bf\u30a4\u30eb\u306b\u306a\u308b\u306e\u3067\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u6307\u5411\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306b\u6163\u308c\u3066\u3044\u308b\u3068\u6700\u521d\u306f\u3068\u3063\u3064\u304d\u306b\u304f\u3055\u3092\u611f\u3058\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u5e73\u884c\u51e6\u7406\u306f\u3001Go\u72ec\u81ea\u306e\u4ed5\u7d44\u307f\u3068\u306a\u3063\u3066\u3044\u3066\u3001Java\u3084C#\u306e\u30de\u30eb\u30c1\u30b9\u30ec\u30c3\u30c9\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306a\u3069\u3088\u308a\u7c21\u5358\u306b\u4f7f\u3048\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<h4>\u30dd\u30a4\u30f3\u30bf<\/h4>\n<p>&amp;\u3067\u30a2\u30c9\u30ec\u30b9\u3092\u8868\u3057\u3066\u3001*\u3067\u4e2d\u8eab\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u308a\u51fa\u3059<\/p>\n<pre class=\"lang:default decode:true \">func main() {\r\n\tn := 123\r\n        \/\/ &amp;\u3067\u5909\u6570\u306e\u30a2\u30c9\u30ec\u30b9\u304c\u683c\u7d0d\r\n\tp := &amp;n\r\n\tfmt.Println(\"n=\", n)\u3000\/\/ 123\r\n        \/\/ *\u3067\u30a2\u30c9\u30ec\u30b9\u5185\u306e\u5909\u6570\u3092\u793a\u3059\r\n\tfmt.Println(\"p=\", *p) \/\/ 123\r\n\t*p = 456\r\n\tfmt.Println(\"n=\", n) \/\/ 456\r\n\tfmt.Println(\"p=\", *p) \/\/ 456\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<p>\u5024\u6e21\u3057\u3068\u30dd\u30a4\u30f3\u30bf(\u53c2\u7167\u6e21\u3057)\u306e\u9055\u3044\uff1a\u5024\u6e21\u3057\u3060\u3068\u95a2\u6570\u5185\u3067\u5909\u6570\u304c\u30b3\u30d4\u30fc\u3055\u308c\u308b\u3002\u5927\u5bb9\u91cf\u306e\u914d\u5217\u306a\u3069\u3092\u6e21\u3059\u3068\u30b3\u30d4\u30fc\u3067\u30b3\u30b9\u30c8\u304c\u5927\u304d\u304f\u306a\u308b<\/p>\n<pre class=\"lang:default decode:true \">func main() {\r\n\tar := []int{10, 20, 30}\r\n\t\/\/ [10, 20, 30]\r\n\tfmt.Println(ar)\r\n\tinitar(&amp;ar)\r\n\t\/\/ [0, 0, 0]\r\n\tfmt.Println(ar)\r\n}\r\n\r\n\r\nfunc initar(ar *[]int) {\r\n\tfor i := 0; i &lt; len(*ar); i++ {\r\n\t\t(*ar)[i] = 0\r\n\t}\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u69cb\u9020\u4f53<\/h4>\n<p>\u69cb\u9020\u4f53\u306e\u521d\u671f\u5316\u65b9\u6cd5<\/p>\n<pre class=\"lang:default decode:true \">type Person struct {\r\n\tName string\r\n\tAge int\r\n}\r\n\r\nfunc main() {\r\n\tperson1 := Person{\"A\", 10}\r\n\tfmt.Println(person1)\r\n\t\r\n\tperson2 := Person{ Name: \"B\", Age: 20}\r\n\tfmt.Println(person2)\r\n\t\r\n\tperson3 := new(Person)\r\n\tperson3.Name = \"C\"\r\n\tperson3.Age = 30\r\n\t\/\/ new\u306e\u5834\u5408\u30dd\u30a4\u30f3\u30bf\r\n\tfmt.Println(*person3)\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>func (\u69cb\u9020\u4f53) \u95a2\u6570\u540d (\u5f15\u6570) { ... } \u3068\u3044\u3063\u305f\u5f62\u3067\u69cb\u9020\u4f53\u306b\u95a2\u6570\u3092\u5272\u308a\u5f53\u3066\u308b\u4e8b\u304c\u3067\u304d\u308b\u3002(\u69cb\u9020\u4f53)\u306e\u90e8\u5206\u3092\u30ec\u30b7\u30fc\u30d0\u30fc\u3068\u547c\u3076\u3002<\/p>\n<p>\u30ec\u30b7\u30fc\u30d0\u30fc\u306b\u30dd\u30a4\u30f3\u30bf\u3092\u5272\u308a\u5f53\u3066\u308b\u4e8b\u3067\u3001\u5024\u306e\u5909\u66f4\u304c\u53ef\u80fd\u306b\u306a\u308b<\/p>\n<pre class=\"lang:default decode:true \">type Person struct {\r\n\tName string\r\n\tAge int\r\n}\r\n\r\nfunc main() {\r\n\tperson1 := Person{\"A\", 10}\r\n\tfmt.Println(person1)\r\n\t\r\n\tperson1.PrintData()\r\n\tperson1.SetData(\"AA\", 99)\r\n\tperson1.PrintData()\r\n}\r\n\r\n\/\/ \u30dd\u30a4\u30f3\u30bf\u306a\u3057 (\u5024\u306e\u5909\u66f4\u306f\u53cd\u6620\u3055\u308c\u306a\u3044)\r\nfunc (p Person) PrintData() {\r\n\tfmt.Println(\"Name:\", p.Name)\r\n\tfmt.Println(\"Age:\", p.Age)\r\n}\r\n\r\n\/\/ \u30dd\u30a4\u30f3\u30bf\u3042\u308a\r\nfunc (p *Person) SetData(name string, age int) {\r\n\tp.Name = name\r\n\tp.Age = age\r\n}<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9<\/h4>\n<p>Go\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306f\u69cb\u9020\u4f53\u306b\u660e\u793a\u7684\u306b\u5b9f\u88c5\u3092\u5ba3\u8a00\u3057\u306a\u3044\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u306e\u5b9a\u7fa9\u3092\u5b9f\u88c5\u3057\u3066\u3044\u308c\u3070\u3001\u81ea\u52d5\u3067\u6e80\u305f\u3057\u305f\u3082\u306e\u3068\u3057\u3066\u6271\u3048\u308b\u3002\uff08\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u306b\u306a\u3089\u306a\u304f\u306a\u308b\uff09<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default decode:true \">type Displayer interface {\r\n\tDisplay()\r\n}\r\n\r\ntype Person struct {\r\n\tName string\r\n\tAge int\r\n}\r\n\r\ntype Dog struct {\r\n\tName string\r\n}\r\n\r\nfunc main() {\r\n\tperson := Person{\"\u7530\u4e2d\", 10}\r\n\tdog := Dog{\"Dog\"}\r\n\t\r\n\tvar displayer Displayer = person\t\r\n\tdisplay(displayer)\r\n\t\r\n\t\r\n\tdisplayer = dog\t\r\n\tdisplay(displayer)\r\n}\r\n\r\nfunc display(d Displayer) {\r\n\td.Display()\r\n}\r\n\r\nfunc (p Person) Display() {\r\n\tfmt.Println(\"-- Person --\")\r\n\tfmt.Println(\"Name:\", p.Name)\r\n\tfmt.Println(\"Age:\", p.Age)\r\n}\r\n\r\nfunc (p Dog) Display() {\r\n\tfmt.Println(\"-- Dog --\")\r\n\tfmt.Println(\"Name:\", p.Name)\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>\u30dd\u30a4\u30f3\u30bf\u30ec\u30b7\u30fc\u30d0\u30fc\u3092\u7528\u3044\u308b\u5834\u5408\u306b\u306f\u3001\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u306b\u306f\u30a2\u30c9\u30ec\u30b9\u3092\u6e21\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u81ea\u4f53\u306f\u30dd\u30a4\u30f3\u30bf\u306a\u306e\u3067\u3001\u30a2\u30c9\u30ec\u30b9\u3092\u6e21\u3055\u306a\u3044\u3068\u30c0\u30e1\uff1f\uff08\u307e\u3060\u7406\u89e3\u3067\u304d\u3066\u3044\u306a\u3044\uff09<\/p>\n<blockquote class=\"wp-embedded-content\" data-secret=\"i2IHY3HtDw\"><p><a href=\"https:\/\/tyablog.net\/2020\/01\/05\/difference-between-interface-and-pointer-in-golang\/\">Go\u8a00\u8a9e \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u30dd\u30a4\u30f3\u30bf\u306e\u9055\u3044<\/a><\/p><\/blockquote>\n<p><iframe class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;Go\u8a00\u8a9e \u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9\u3068\u30dd\u30a4\u30f3\u30bf\u306e\u9055\u3044&#8221; &#8212; tyablog.net\" src=\"https:\/\/tyablog.net\/2020\/01\/05\/difference-between-interface-and-pointer-in-golang\/embed\/#?secret=i2IHY3HtDw\" data-secret=\"i2IHY3HtDw\" width=\"600\" height=\"338\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe><\/p>\n<pre class=\"lang:default decode:true\">func main() {\r\n\tperson := Person{\"\u7530\u4e2d\", 10}\r\n\tdog := Dog{\"Dog\"}\r\n\t\r\n\tvar displayer Displayer = &amp;person\t\r\n\tdisplay(displayer)\r\n\t\t\r\n\tdisplayer = &amp;dog\t\r\n\tdisplay(displayer)\r\n}\r\n\r\nfunc display(d Displayer) {\r\n\td.Display()\r\n}\r\n\r\nfunc (p *Person) Display() {\r\n\tfmt.Println(\"-- Person --\")\r\n\tfmt.Println(\"Name:\", p.Name)\r\n\tfmt.Println(\"Age:\", p.Age)\r\n}\r\n\r\nfunc (p *Dog) Display() {\r\n\tfmt.Println(\"-- Dog --\")\r\n\tfmt.Println(\"Name:\", p.Name)\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u7a7a\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9<\/h4>\n<p>\u7a7a\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u5b9a\u7fa9\u3059\u308b\u3068\u4efb\u610f\u306e\u5024\u304c\u8a2d\u5b9a\u53ef\u80fd\u306b\u306a\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true\">\/\/ \u7a7a\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30b9\r\ntype General interface{}\r\n\r\nvar v General\r\n\/\/ \u4e0b\u8a18\u306f\u5168\u3066\u4ee3\u5165\u53ef\u80fd\r\nv = 123\r\nv = \"abc\"\r\nv = true<\/pre>\n<p>&nbsp;<\/p>\n<p>\u7a7a\u306e\u30a4\u30f3\u30bf\u30d5\u30a7\u30fc\u30b9\u3092\u7528\u3044\u308b\u4e8b\u3067\u3001\u4efb\u610f\u306e\u30c7\u30fc\u30bf\u3092\u540c\u3058\u69cb\u9020\u4f53\u306b\u4fdd\u6301\u3055\u305b\u308b\u4e8b\u304c\u3067\u304d\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true \">type General interface{}\r\n\r\ntype GDataImpl struct {\r\n\tName string\r\n\tData General\r\n}\r\n\r\nfunc main() {\r\n\tdata := []GDataImpl{}\r\n\t\/\/ \u6587\u5b57\u5217\r\n\tdata = append(data, GDataImpl{\"A\", \"abc\"})\r\n\t\/\/ \u6570\u5024\r\n\tdata = append(data, GDataImpl{\"A\", 123})\r\n\t\/\/ \u914d\u5217\r\n\tdata = append(data, GDataImpl{\"A\", []int{1,2,3}})\r\n\t\r\n\tfor _, ob := range data {\r\n\t\tob.Print()\r\n\t}\r\n}\r\n\r\nfunc (g *GDataImpl) Print() {\r\n\tfmt.Print(g.Name)\r\n\tfmt.Println(g.Data)\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4>\u5e73\u884c\u51e6\u7406<\/h4>\n<p>\u30e1\u30bd\u30c3\u30c9\u306b\u547c\u3073\u51fa\u3057\u306bgo\u3068\u4ed8\u3051\u308b\u3060\u3051\u3067\u3001\u5225\u30b9\u30ec\u30c3\u30c9\u3067\u306e\u5b9f\u884c\u3068\u306a\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true\">type GDataImpl struct {\r\n\tName string\r\n\tData General\r\n}\r\n\r\nfunc main() {\r\n\tgo heavy(\"Go\")\r\n\theavy(\"Not Go\")\r\n}\r\n\r\nfunc heavy(msg string) {\r\n\tfor i := 0; i &lt; 10; i++ {\r\n\t\tfmt.Println(\"%d %s\", i, msg)\r\n\t\ttime.Sleep(1000)\r\n\t}\r\n}\r\n\r\n\r\n\/\/ \u51fa\u529b\r\n0 Not Go\r\n0 Go\r\n1 Not Go\r\n1 Go\r\n2 Go\r\n2 Not Go\r\n3 Not Go\r\n3 Go\r\n...<\/pre>\n<p>&nbsp;<\/p>\n<p>\u30c1\u30e3\u30f3\u30cd\u30eb\u3092\u4f7f\u3063\u3066\u3001go\u30eb\u30fc\u30c1\u30f3\u3068\u306e\u30c7\u30fc\u30bf\u306e\u3084\u308a\u3068\u308a\u304c\u3067\u304d\u308b\u3002<\/p>\n<p>go\u30eb\u30fc\u30c1\u30f3\u306e\u5916\u3067\u30c1\u30e3\u30f3\u30cd\u30eb\u306e\u5024\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u30eb\u30fc\u30c1\u30f3\u304c\u5024\u3092\u8fd4\u3059\u307e\u3067\u5f85\u3064\u3002<\/p>\n<pre class=\"lang:default decode:true \">func main() {\r\n\tc := make(chan int)\r\n\tgo heavy(\"Go\", c)\r\n\t\r\n\t\/\/ \u30c1\u30e3\u30f3\u30cd\u30eb\u304b\u3089\u5024\u304c\u9001\u3089\u308c\u3066\u304f\u308b\u307e\u3067\u5f85\u3064\r\n\tfmt.Println(&lt;-c)\r\n}\r\n\r\nfunc heavy(msg string, c chan int) {\r\n\tn := 0\r\n\tfor i := 0; i &lt; 10; i++ {\r\n\t\tn += i\r\n\t\tfmt.Println(i, msg)\r\n\t\ttime.Sleep(1000)\r\n\t}\r\n\tc &lt;- n\r\n}<\/pre>\n<p>\u30eb\u30fc\u30c1\u30f3\u304b\u3089\u306e\u5024\u306e\u53d7\u3051\u53d6\u308aFIFO\u3068\u306a\u3063\u3066\u3044\u3066\u3001\u30eb\u30fc\u30c1\u30f3\u304b\u3089\u547c\u3073\u51fa\u3055\u308c\u308b\u305f\u3073\u306b\u30c1\u30e3\u30cd\u30eb\u306e\u5024\u304c\u53d6\u308a\u51fa\u305b\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true\">func main() {\r\n\tc := make(chan int)\r\n\t\/\/ 2\u3064\u306e\u30eb\u30fc\u30c1\u30f3\u4f5c\u6210\r\n\tgo heavy(1, c)\r\n\tgo heavy(2, c)\r\n\t\/\/ 2\u3064\u306e\u30eb\u30fc\u30c1\u30f3\u306e\u7d50\u679c\u3092\u53d7\u3051\u53d6\u308b(2\u3064\u53d7\u3051\u53d6\u308b\u307e\u3067\u5f85\u3064)\r\n\tx, y := &lt;-c, &lt;-c\r\n\r\n\t\/\/ 20, 10 (=&gt;\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u3088\u3063\u3066\u306f10,20)\r\n\tfmt.Println(x, y)\r\n}\r\n\r\nfunc heavy(addNum int, c chan int) {\r\n\tn := 0\r\n\tfor i := 0; i &lt; 10; i++ {\r\n\t\tn += addNum\r\n\t\ttime.Sleep(50)\r\n\t}\r\n\tc &lt;- n\r\n}<\/pre>\n<p>\u30eb\u30fc\u30c1\u30f3\u5074\u3078\u306e\u5024\u306e\u8a2d\u5b9a\u65b9\u6cd5\u3082\u53ef\u80fd\u3002\u4e0b\u8a18\u306f\u30e1\u30a4\u30f3\u30b9\u30ec\u30c3\u30c9\u304b\u3089Go\u30eb\u30fc\u30c1\u30f3\u306b\u30c1\u30e3\u30cd\u30eb\u3092\u901a\u3057\u3066\u5024\u3092\u9001\u4fe1\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u30c1\u30e3\u30cd\u30eb\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u307e\u3067\u30eb\u30fc\u30c1\u30f3\u5074\u306e\u51e6\u7406\u306f\u505c\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true \">func main() {\r\n\tc := make(chan int)\r\n\t\/\/ \u30eb\u30fc\u30c1\u30f3\u306b\u30c1\u30e3\u30cd\u30eb\u3092\u6e21\u3057\u3066\u5b9f\u884c\r\n\tgo heavy(c)\r\n\t\/\/ \u30c1\u30e3\u30cd\u30eb\u306e\u5024\u3092\u8a2d\u5b9a(\u8a2d\u5b9a\u3055\u308c\u308b\u307e\u3067heavy\u306e\u30c1\u30e3\u30cd\u30eb\u306e\u51e6\u7406\u306f\u6b62\u307e\u308b)\r\n\tc &lt;- 100\r\n\tfmt.Println(\"end\")\r\n}\r\n\r\nfunc heavy(c chan int) {\r\n\tn := &lt;-c\r\n\tfor i := 0; i &lt; 10; i++ {\r\n\t\tn += 1\r\n\t\tfmt.Println(n)\r\n\t}\r\n}\r\n\r\n\/\/ display result ...\r\n100\r\n101\r\n102\r\n....<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\uff12\u3064\u306e\u30c1\u30e3\u30cd\u30eb\u3092\u7528\u610f\u3057\u3066\u53cc\u65b9\u5411\u306e\u30c7\u30fc\u30bf\u306e\u3084\u308a\u53d6\u308a\u3082\u53ef\u80fd\u3002<\/p>\n<pre class=\"lang:default decode:true\">func main() {\r\n\t\/\/ \u53d7\u4fe1\u3068\u9001\u4fe1\u7528\u306e\u30c1\u30e3\u30cd\u30eb\u3092\u4f5c\u6210\r\n\tcs := make(chan int)\r\n\tcr := make(chan int)\t\r\n\t\/\/ \u30eb\u30fc\u30c1\u30f3\u306b\u30c1\u30e3\u30cd\u30eb\u3092\u6e21\u3057\u3066\u5b9f\u884c\r\n\tgo heavy(cs, cr)\r\n\t\/\/ \u30c1\u30e3\u30cd\u30eb\u306e\u5024\u3092\u8a2d\u5b9a(\u8a2d\u5b9a\u3055\u308c\u308b\u307e\u3067heavy\u306e\u30c1\u30e3\u30cd\u30eb\u306e\u51e6\u7406\u306f\u6b62\u307e\u308b)\r\n\tcs &lt;- 100\r\n\t\/\/ \u30eb\u30fc\u30c1\u30f3\u304b\u3089\u306e\u5024\u3092\u53d6\u5f97\r\n\t\r\n\tfmt.Println(\"cr:\", &lt;-cr)\r\n}\r\n\r\nfunc heavy(cs chan int, cr chan int) {\r\n\t\/\/ \u5225\u30b9\u30ec\u30c3\u30c9\u304b\u3089\u9001\u4fe1\u3055\u308c\u308b\u30c7\u30fc\u30bf\u3092\u30c1\u30e3\u30f3\u30cd\u30eb\u304b\u3089\u53d6\u5f97\r\n\tn := &lt;-cs\r\n\tfor i := 0; i &lt; 10; i++ {\r\n\t\tn += 1\r\n\t\tfmt.Println(n)\r\n\t}\r\n\t\/\/ \u9001\u4fe1\u7528\u306e\u30c1\u30e3\u30f3\u30cd\u30eb\u306b\u30c7\u30fc\u30bf\u9001\u4fe1\r\n\tcr &lt;- n\r\n}\r\n<\/pre>\n<p>&nbsp;<\/p>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h3>\u7b2c4\u7ae0 Fyne\u306b\u3088\u308bGUI\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a<\/h3>\n<p>Go\u3067\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306eGUI\u304c\u958b\u767a\u3067\u304d\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306eFyne\u3067\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u308b\u65b9\u6cd5\u304c\u8aac\u660e\u3055\u308c\u3066\u3044\u308b\u7ae0\u3067\u3059\u3002<\/p>\n<p>Fyne\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u59cb\u307e\u308a\u3001\u5404UI\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u4f7f\u3044\u65b9\u304c\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u305d\u3057\u3066\u3001\u5fdc\u7528\u3068\u3057\u3066\u96fb\u5353\u30a2\u30d7\u30ea\u3068\u7c21\u6613\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3068\u3044\u3063\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>Choronium\u3092\u4f7f\u3063\u305fWeb\u30d9\u30fc\u30b9\u3067\u306f\u306a\u3044\u30de\u30eb\u30c1\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306e\u30c7\u30b9\u30af\u30c8\u30c3\u30d7GUI\u306f\u3001\u898b\u305f\u76ee\u304c\u30e2\u30c0\u30f3\u3067\u306f\u306a\u3044\u611f\u3058\u306e\u3082\u306e\u304c\u591a\u3044\u3068\u611f\u3058\u3066\u3044\u307e\u3057\u305f\u304c\u3001\u672c\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306f\u304b\u306a\u308a\u898b\u305f\u76ee\u3082\u826f\u3044\u306e\u304c\u5b09\u3057\u3044\u3067\u3059\u306d\u3002<\/p>\n<p>Fyne\u81ea\u4f53\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c2\u306b\u306a\u3063\u305f\u305f\u3081\u304b\u3001\u4f7f\u7528\u3057\u3066\u3044\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u9055\u3063\u305f\u308a\u3057\u3066\u3001\u6700\u521d\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306b\u304b\u306a\u308a\u6642\u9593\u304c\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u516c\u5f0f\u30da\u30fc\u30b8\u306e\u5c0e\u5165\u65b9\u6cd5\u306b\u5f93\u3063\u3066\u5b9f\u65bd\u3057\u305f\u65b9\u304c\u826f\u3044\u3067\u3059\u3002<\/p>\n<p>\u5e78\u3044\u306b\u3082\u30a4\u30f3\u30dd\u30fc\u30c8\u3059\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u4ee5\u5916\u306f\u305d\u3053\u307e\u3067\u5927\u304d\u304fAPI\u306f\u5909\u308f\u3063\u3066\u3044\u306a\u3055\u305d\u3046\u3067\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u3082\u306e\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u305f\u3060\u3001Fyne\u81ea\u4f53\u304cv2\u3067\u30c7\u30fc\u30bf\u30d0\u30a4\u30f3\u30c7\u30a3\u30f3\u30b0\u306b\u5bfe\u5fdc\u3059\u308b\u306a\u3069\u3001\u3088\u308a\u4fbf\u5229\u306a\u66f8\u304d\u65b9\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u308b\u3088\u3046\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>go mod init xxx<\/p>\n<p>go get <span class=\"hljs-title\">fyne<\/span>.<span class=\"hljs-title\">io<\/span>\/<span class=\"hljs-title\">fyne<\/span>\/<span class=\"hljs-title\">v2<\/span><\/p>\n<p>go get <span class=\"hljs-title\">fyne<\/span>.<span class=\"hljs-title\">io<\/span>\/<span class=\"hljs-title\">fyne<\/span>\/<span class=\"hljs-title\">v2\/...<\/span><\/p>\n<p>https:\/\/teratail.com\/questions\/339897<\/p>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<p>&nbsp;<\/p>\n<h3>\u7b2c5\u7ae0 \u30c7\u30fc\u30bf\u30a2\u30af\u30bb\u30b9<\/h3>\n<p>\u30d5\u30a1\u30a4\u30eb\u3001\u30cd\u30c3\u30c8\u30ef\u30fc\u30af(HTTP)\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3068\u3044\u3063\u305f\u5404\u7a2e\u30c7\u30fc\u30bf\u3078\u306eGo\u3067\u306e\u30a2\u30af\u30bb\u30b9\u65b9\u6cd5\u306b\u95a2\u3057\u3066\u307e\u3068\u3081\u305f\u7ae0\u3067\u3059\u3002<\/p>\n<p>4\u7ae0\u3067GUI\u306e\u4f5c\u6210\u3068\u3044\u3046\u5c11\u3057\u3001\u5b9f\u8df5\u7684\u306a\u5185\u5bb9\u3092\u3084\u308a\u307e\u3057\u305f\u304c\u3001\u672c\u7ae0\u3067\u306f\u307e\u305f\u6587\u6cd5\u3084\u6a5f\u80fd\u3068\u3044\u3063\u305f\u8aac\u660e\u306b\u623b\u308a\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u7ae0\u672b\u3067\u306f\u8aac\u660e\u3057\u305f\u6a5f\u80fd\u3092\u4f7f\u7528\u3057\u305fGUI\u3092\u4f5c\u6210\u3057\u3001\u5b9f\u8df5\u7684\u306b\u5b66\u3076\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u306f\u3001Web\u30b9\u30af\u30ec\u30a4\u30d4\u30f3\u30b0\u306e\u5b9f\u65bd\u3057\u305f\u308a\u3001JSON\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u69cb\u9020\u4f53\u3078\u30d1\u30fc\u30b9\u3059\u308b\u306a\u3069\u3001\u5c11\u3057\u5fdc\u7528\u7684\u306a\u5185\u5bb9\u3082\u5b9f\u65bd\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306fSQLite\u3092\u4f7f\u7528\u3057\u305f\u8aac\u660e\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n<h3>\u7b2c6\u7ae0 Web\u30b5\u30fc\u30d0\u30fc\u30d7\u30ed\u30b0\u30e9\u30e0<\/h3>\n<p>4~5\u7ae0\u306b\u5f15\u304d\u7d9a\u304d\u3001\u5b9f\u8df5\u30d9\u30fc\u30b9\u3067\u5b9f\u969b\u306bWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u4f5c\u3063\u3066\u307f\u308b\u7ae0\u3067\u3059\u3002<\/p>\n<p>\u5358\u7d14\u306aHTML\u3092\u8fd4\u3059\u5185\u5bb9\u304b\u3089\u59cb\u307e\u308a\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u7528\u3044\u305f\u672c\u683c\u7684\u306a\u753b\u9762\u3092\u8fd4\u3059\u306a\u3069\u3001Web\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3088\u304f\u7528\u3044\u3089\u308c\u308b\u30b1\u30fc\u30b9\u3092\u5b9f\u969b\u306b\u5b9f\u88c5\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>DB\u306e\u30a2\u30af\u30bb\u30b9\u306b\u306fGO\u306eORM\u306eGORM\u3092\u4f7f\u7528\u3057\u3066\u30af\u30a8\u30ea\u3092\u66f8\u304b\u305a\u306b\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p>Web\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001Go\u306e\u6a19\u6e96\u6a5f\u80fd\u3060\u3051\u3067\u305d\u3053\u305d\u3053\u306eWeb\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u5b9f\u88c5\u3067\u304d\u308b\u3053\u3068\u306b\u9a5a\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u5b9f\u969b\u306b\u306fWeb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3046\u306b\u3057\u308d\u3001\u6a19\u6e96\u7684\u306a\u6a5f\u80fd\u3067\u3053\u3053\u307e\u3067\u3067\u304d\u308b\u306e\u306fGo\u3089\u3057\u3044\u70b9\u306a\u306e\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306d\u3002<\/p>\n\n\t<p style=\"color:#666;margin-bottom:5px;\">\u30b9\u30dd\u30f3\u30b5\u30fc\u30ea\u30f3\u30af<\/p>\n\t<div class=\"middle-ad\">\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Contents1 \u6982\u89812 \u66f8\u7c4d\u6982\u89813 \u5185\u5bb9\u306e\u307e\u3068\u3081\u3068\u611f\u60f34 \u8aad\u66f8\u30ce\u30fc\u30c8(\u500b\u4eba\u7684\u306a\u307e\u3068\u3081) \u6982\u8981 \u300cGo\u8a00\u8a9e\u30cf\u30f3\u30ba\u30aa\u30f3\u300d\u3092\u8aad\u3093\u3060\u306e\u3067\u611f\u60f3\u3092\u66f8\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002 2022\/1\/2\u8ffd\u8a18 Go\u8a00\u8a9e\u306e\u66f8\u7c4d\u3068\u3057\u3066 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":2538,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[48,13,12],"tags":[],"_links":{"self":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/2485"}],"collection":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2485"}],"version-history":[{"count":29,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/2485\/revisions"}],"predecessor-version":[{"id":3072,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/posts\/2485\/revisions\/3072"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=\/wp\/v2\/media\/2538"}],"wp:attachment":[{"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nobunobu1717.site\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}