{"id":197598,"date":"2013-10-15T15:24:02","date_gmt":"2013-10-15T11:24:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=197598"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=197598","title":{"rendered":"<span class=\"post_title\">\u0417\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 Go \u2014 \u043f\u0438\u0448\u0435\u043c \u0433\u0440\u0430\u0431\u0431\u0435\u0440 \u0432\u0435\u0431 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0441 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c\u044e \u0438 \u0431\u043b\u0443\u0434\u043d\u0438\u0446\u0430\u043c\u0438<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0440\u043e \u044f\u0437\u044b\u043a Go \u043e\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Google \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0432\u0441\u0435. \u0410 \u0432\u043e\u0442 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435, \u0438 \u043e\u0447\u0435\u043d\u044c \u0437\u0440\u044f \u2014 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 <s>\u0441\u0443\u0441\u043b\u0438\u043a\u0430\u043c\u0438<\/s> Go \u044d\u0442\u043e \u043c\u043e\u0440\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u044f, \u0432 \u0447\u0435\u043c \u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u043b\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043e\u043f\u044b\u0442\u0435.<br \/>  \u041d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043d\u043e\u0432\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0437\u0430\u0431\u0430\u0432\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f, \u043d\u0435 \u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u044f, \u0432\u0437\u044f\u043b \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043f\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u0437\u0430\u0434\u0430\u0447\u0443 \u201c\u0438\u0437 \u0436\u0438\u0437\u043d\u0438, \u0441\u0430\u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0439 \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u0438\u201d:<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0441\u0430\u0439\u0442 <a href=\"http:\/\/vpustotu.ru\">http:\/\/vpustotu.ru<\/a> \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043b\u044e\u0431\u043e\u0439 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e \u043d\u0430\u0431\u043e\u043b\u0435\u0432\u0448\u0435\u043c. \u0412\u0441\u0435 \u0432\u044b\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u044f (\u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0443 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u201c\u0446\u0438\u0442\u0430\u0442\u0430\u043c\u0438\u201d) \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u044e (\u0430\u043d\u0430\u043b\u043e\u0433 \u201c\u0431\u0435\u0437\u0434\u043d\u044b\u201d \u0431\u0430\u0448\u043e\u0440\u0433\u0430), \u0433\u0434\u0435 \u043b\u044e\u0431\u043e\u0439 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435\u0442 \u043c\u044b\u0441\u043b\u0438 \u0438 \u043f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u0442\u044c \u0437\u0430 \u0446\u0438\u0442\u0430\u0442\u0443 \u0432 \u0441\u0442\u0438\u043b\u0435 \u201c\u041e\u0433\u043e!\u201d \u0438\u043b\u0438 \u201c\u0415\u0440\u0443\u043d\u0434\u0430!\u201d. \u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 (<a href=\"http:\/\/vpustotu.ru\/moderation\/\">http:\/\/vpustotu.ru\/moderation\/<\/a>) \u043d\u0430\u043c \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0446\u0438\u0442\u0430\u0442\u0443, \u0441\u0441\u044b\u043b\u043a\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u201c\u0415\u0449\u0435\u201d, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0434\u0435\u0442 \u043d\u0430 \u044d\u0442\u0443 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u041f\u043e\u0449\u0435\u043b\u043a\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>  <b>\u0418 \u0432\u043e\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430<\/b> \u2013 \u0441\u0440\u043e\u0447\u043d\u043e, \u043f\u043e\u0434 \u043f\u043e\u043a\u0440\u043e\u0432\u043e\u043c \u0442\u0435\u043c\u043d\u043e\u0442\u044b, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0430\u043c\u043f \u0432\u0441\u0435\u0445 \u0446\u0438\u0442\u0430\u0442 \u043d\u0430 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0436\u0438\u0442\u0435\u0439\u0441\u043a\u0443\u044e \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0438\u0434\u0438\u043e\u0442\u0438\u0437\u043c\u0430 \u0437\u0430\u0434\u0430\u0447\u0438, \u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0451 \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f:<\/p>\n<p>  \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u0442 \u043f\u0440\u044f\u043c\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0446\u0438\u0442\u0430\u0442\u0443, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0446\u0438\u0442\u0430\u0442\u0443 \u2013 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 (\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u201c\u0435\u0449\u0435\u201d, \u0447\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435). \u041f\u0440\u0438\u0447\u0435\u043c \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u043f\u043e\u0432\u0442\u043e\u0440\u044b, \u0447\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u044b \u043c\u0438\u043d\u0443\u0442 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0438\u043d\u0433\u0430.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0443\u0436\u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f:<\/p>\n<ul>\n<li>\u0414\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438 \u043f\u0430\u0440\u0441\u0438\u0442\u044c (\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c) \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0446\u0438\u0442\u0430\u0442\u0443.<\/li>\n<li>\u0414\u043e\u043b\u0436\u043d\u0430 \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b.<\/li>\n<\/ul>\n<p>  \u041b\u043e\u0433\u0438\u0447\u043d\u043e, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u043c \u0432\u0441\u0435 \u043b\u0438 \u0446\u0438\u0442\u0430\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0446\u0438\u0442\u0430\u0442 \u043f\u043e\u0434\u0440\u044f\u0434. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043c:<\/p>\n<ul>\n<li>\u0414\u043e\u043b\u0436\u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u043d\u043e \u0438 \u043f\u043e \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u201c\u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432\u201d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 500!<\/li>\n<li>\u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0437\u0430\u0439\u043c\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043c\u0435\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u201c\u0441 \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c\u201d \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f.<\/li>\n<li>\u041d\u0443 \u0438 \u0440\u0430\u0437 \u0443\u0436 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u044d\u0442\u043e \u043d\u0430\u0434\u043e\u043b\u0433\u043e \u2013 \u043f\u0443\u0441\u0442\u044c \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0432\u043e\u0435 \u0433\u0440\u044f\u0437\u043d\u043e\u0435 \u0434\u0435\u043b\u043e \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432. \u0425\u043e\u0440\u043e\u0448\u043e-\u0431\u044b \u0432 \u0446\u0435\u043b\u044b\u0445 4 \u043f\u043e\u0442\u043e\u043a\u0430 (\u0438\u043b\u0438 \u0434\u0430\u0436\u0435 5!).<\/li>\n<li>\u0418 \u043e\u0442\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0430\u0445 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043a\u0430\u0436\u0434\u044b\u0435, \u0441\u043a\u0430\u0436\u0435\u043c, 10 \u0441\u0435\u043a\u0443\u043d\u0434.<\/li>\n<li>\u0410 \u0432\u0441\u0435 \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0443\u0441\u043a\u0430\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0438\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438!<\/li>\n<\/ul>\n<p>  \u041d\u0443, \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u041f\u0443\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u0435\u0434\u0435\u0442 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u2013 \u0441 \u0446\u0438\u0442\u0430\u0442\u0430\u043c\u0438 \u0438 \u0441 \u043d\u0435\u043a\u0438\u043c\u0438 \u0445\u0435\u0448\u0430\u043c\u0438 \u044d\u0442\u0438\u0445 \u0446\u0438\u0442\u0430\u0442, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f, \u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u041d\u0443 \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u0446\u0438\u043a\u043b\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432\u044b\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u044f \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u0438 \u043d\u043e\u0432\u044b\u0435 \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u0438\u044f, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 ctrl-c \u043f\u043e \u043b\u0431\u0443 \u0438\u043b\u0438 \u0436\u0435 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432. \u0417\u0430\u0434\u0430\u0447\u0430 \u044f\u0441\u043d\u0430, \u043f\u043b\u0430\u043d \u0435\u0441\u0442\u044c \u2013 \u043f\u043e\u0435\u0445\u0430\u043b\u0438!<br \/>  <a name=\"habracut\"><\/a><br \/>  \u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u043b\u044e\u0431\u0438\u043c\u044b\u0439 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440 \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442. \u0418\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043a\u043e\u0434 \u043f\u0443\u0441\u0442\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"go\">package main   import (     &quot;fmt&quot; )   func main() {     fmt.Println(&quot;Hello World!&quot;) } <\/code><\/pre>\n<p>  \u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0438\u0434\u0442\u0438 \u043f\u043e \u0441\u043f\u0438\u0441\u043a\u0443 \u0438 \u043f\u043e \u043f\u043e\u0440\u044f\u0434\u043a\u0443 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432\u0440\u043e\u0434\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u201c\u043f\u043e\u0442\u043e\u043a\u043e\u0432\u201d, \u0438\u043c\u0435\u043d \u0444\u0430\u0439\u043b\u043e\u0432 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435. \u0412\u0441\u044e \u044d\u0442\u0443 \u043a\u0440\u0430\u0441\u043e\u0442\u0443 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u043f\u0430\u043a\u0435\u0442 \u201c<a href=\"http:\/\/golang.org\/pkg\/flag\/\">flag<\/a>\u201c. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0433\u043e \u0432 \u0441\u043f\u0438\u0441\u043e\u043a \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0438, \u0437\u0430\u043e\u0434\u043d\u043e, \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435-\u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b:  <\/p>\n<pre><code class=\"go\">import (     &quot;flag&quot;     &quot;fmt&quot; )   var (     WORKERS       int             = 2            \/\/\u043a\u043e\u043b-\u0432\u043e &quot;\u043f\u043e\u0442\u043e\u043a\u043e\u0432&quot;     REPORT_PERIOD int             = 10           \/\/\u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 (\u0441\u0435\u043a)     DUP_TO_STOP   int             = 500          \/\/\u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432 \u0434\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0430     HASH_FILE     string          = &quot;hash.bin&quot;   \/\/\u0444\u0430\u0439\u043b \u0441 \u0445\u0435\u0448\u0430\u043c\u0438     QUOTES_FILE   string          = &quot;quotes.txt&quot; \/\/\u0444\u0430\u0439\u043b \u0441 \u0446\u0438\u0442\u0430\u0442\u0430\u043c\u0438 ) <\/code><\/pre>\n<p>  \u0422\u0438\u043f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0432 Go \u043f\u0438\u0448\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0435\u0451 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0441\u043b\u0435\u0433\u043a\u0430 \u043d\u0435\u043f\u0440\u0438\u0432\u044b\u0447\u043d\u043e. \u0422\u0430\u043a\u0436\u0435 \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0447\u0442\u043e\u0431\u044b \u0431\u044b\u043b\u043e \u0432\u0441\u0435 \u0443\u0434\u043e\u0431\u043d\u043e \u0438 \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0441\u0442\u0435.<\/p>\n<p>  \u0412\u0435\u0449\u0438 \u0432\u0440\u043e\u0434\u0435 \u0440\u0430\u0437\u0431\u043e\u0440\u0430 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043f\u0440\u0438\u043d\u044f\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <i>init()<\/i>, \u0442\u0430\u043a \u0438 \u043f\u043e\u0441\u0442\u0443\u043f\u0438\u043c:  <\/p>\n<pre><code class=\"go\">func init() {     \/\/\u0417\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430 \u0440\u0430\u0437\u0431\u043e\u0440\u0430:     flag.IntVar(&WORKERS, &quot;w&quot;, WORKERS, &quot;\u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432&quot;)     flag.IntVar(&REPORT_PERIOD, &quot;r&quot;, REPORT_PERIOD, &quot;\u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 (\u0441\u0435\u043a)&quot;)     flag.IntVar(&DUP_TO_STOP, &quot;d&quot;, DUP_TO_STOP, &quot;\u043a\u043e\u043b-\u0432\u043e \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438&quot;)     flag.StringVar(&HASH_FILE, &quot;hf&quot;, HASH_FILE, &quot;\u0444\u0430\u0439\u043b \u0445\u0435\u0448\u0435\u0439&quot;)     flag.StringVar(&amp;QUOTES_FILE, &quot;qf&quot;, QUOTES_FILE, &quot;\u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0438\u0441\u0435\u0439&quot;)     \/\/\u0418 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0440\u0430\u0437\u0431\u043e\u0440 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432     flag.Parse()  } <\/code><\/pre>\n<p>  \u0412\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f\u043c\u0438 <i>IntVar<\/i> (\u0434\u043b\u044f \u0447\u0438\u0441\u0435\u043b) \u0438 <i>StringVar <\/i>(\u0434\u043b\u044f \u0441\u0442\u0440\u043e\u043a) \u0438\u0437 \u043f\u0430\u043a\u0435\u0442\u0430 <i>flag <\/i>\u2013 \u043e\u043d\u0438 \u0447\u0438\u0442\u0430\u044e\u0442 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u043a\u043b\u044e\u0447 \u0438\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442 \u0435\u0433\u043e \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e. \u0415\u0441\u043b\u0438 \u043a\u043b\u044e\u0447 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0442\u043e \u0431\u0435\u0440\u0435\u0442\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0421\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441 \u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u044b\u0439:  <\/p>\n<pre><code class=\"go\">flag.StringVar( &\u0438\u043c\u044f_\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439, \u043a\u043b\u044e\u0447 \u043a\u043e\u043c. \u0441\u0442\u0440\u043e\u043a\u0438, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e , \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430) <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043c\u044b \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c \u043d\u0430 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e (\u0441\u0438\u043c\u0432\u043e\u043b &#038;) \u0447\u0442\u043e\u0431\u044b \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043c\u043e\u0433\u043b\u0430 \u0435\u0451 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438. \u0422\u0430\u043a\u0436\u0435 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0435\u043d \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u201c\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u043a\u043b\u044e\u0447\u0430\u201d \u2013 \u0434\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u0430\u043a\u0435\u0442 flag \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u0430\u043c \u043b\u0435\u0433\u0435\u043d\u0434\u0443 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u043f\u043e \u043a\u043b\u044e\u0447\u0443 \u201c-h\u201d. \u041c\u043e\u0436\u043d\u043e \u043f\u0440\u044f\u043c\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438 \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c:  <\/p>\n<pre><code class=\"dos\">C:\\Go\\src\\habratest&gt;habratest.exe -h Usage of habratest.exe:   -d=500: \u043a\u043e\u043b-\u0432\u043e \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432 \u0434\u043b\u044f \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438   -hf=&quot;hash.bin&quot;: \u0444\u0430\u0439\u043b \u0445\u0435\u0448\u0435\u0439   -qf=&quot;quotes.txt&quot;: \u0444\u0430\u0439\u043b \u0437\u0430\u043f\u0438\u0441\u0435\u0439   -r=10: \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 (\u0441\u0435\u043a)   -w=2: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432 <\/code><\/pre>\n<p>  \u0414\u0430\u043b\u044c\u0448\u0435 \u043f\u043e \u043f\u043b\u0430\u043d\u0443 \u0438\u0434\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0445\u0435\u0448\u0435\u0439 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043d\u043e \u043a \u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0435\u0440\u043d\u0443\u0442\u044c\u0441\u044f \u043f\u043e\u043f\u043e\u0437\u0436\u0435, \u043a\u043e\u0433\u0434\u0430 \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0431\u0443\u0434\u0435\u0442 \u0447\u0442\u043e \u0437\u0430\u0433\u0440\u0443\u0436\u0430\u0442\u044c. \u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u043c, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u043f\u043e\u043a\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0432\u044b\u043c.<\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u043c \u043f\u0440\u043e \u0441\u0430\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u2014 \u043e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0435\u0435, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0435\u0441\u0441. \u0414\u0430 \u0435\u0449\u0435 \u0438 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u00ab\u043f\u043e\u0442\u043e\u043a\u043e\u0432\u00bb (\u0441\u0440\u0430\u0437\u0443 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c\u0441\u044f \u2014 \u043f\u043e\u0442\u043e\u043a\u043e\u043c \u044f \u043d\u0430\u0437\u044b\u0432\u0430\u044e thread \u0430 \u043d\u0435 stream. \u041d\u0443 \u0442\u0430\u043a, \u043d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439). \u0425\u0430!<\/p>\n<p>  \u041c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0441\u0442\u044c \u0432 Go \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u0435\u0442\u0441\u044f \u0433\u043e\u0443\u0440\u0443\u0442\u0438\u043d\u0430\u043c\u0438 (<a href=\"http:\/\/golang.org\/doc\/effective_go.html#goroutines\">goroutine<\/a>), \u0442\u043e \u0435\u0441\u0442\u044c \u043b\u044e\u0431\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u00ab\u0432 \u0444\u043e\u043d\u0435\u00bb \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0432 \u043f\u0435\u0440\u0435\u0434 \u043d\u0435\u0439 \u043a\u043b\u044e\u0447\u0435\u0432\u043e\u0435 \u0441\u043b\u043e\u0432\u043e \u00abgo\u00bb: \u043e\u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f, \u044d\u0442\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u043a\u0430\u043a \u0437\u0430\u043f\u0443\u0441\u043a \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441 &#038; \u043d\u0430 \u043a\u043e\u043d\u0446\u0435 \u0432 linux \u2014 \u043c\u044b \u0441\u0440\u0430\u0437\u0443 \u043c\u043e\u0436\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0435\u0449\u0435:  <\/p>\n<pre><code class=\"go\">\/\/\u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0435\u0441\u043b\u0438 \u0435\u0441\u0442\u044c ... func GadgetUmbrella() { \t\/\/...\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0438 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0440\u0430\u0441\u0447\u0435\u0442... } \/\/...\u0438 \u043c\u044b \u043d\u0435 \u0445\u043e\u0442\u0438\u043c \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u043e\u043d \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u0442\u0441\u044f,  \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0438\u0448\u0435\u043c:   go GadgetUmbrella()  fmt.Println(&quot;\u043c\u044b \u043f\u0430\u0434\u0430\u0435\u043c!&quot;) \/\/\u0418 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e \u043f\u0440\u0438\u0441\u043a\u043e\u0440\u0431\u043d\u043e\u043c \u0441\u043e\u0431\u044b\u0442\u0438\u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u0435\u0434\u0435\u043d\u043e \u043d\u0430 \u044d\u043a\u0440\u0430\u043d \u0441\u0440\u0430\u0437\u0443 \u0436\u0435, \u0430 \u043d\u0435 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u0438 GadgetUmbrella() <\/code><\/pre>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435 \u0433\u043e\u0443\u0440\u0443\u0442\u0438\u043d\u044b \u044d\u0442\u043e \u043d\u0435 \u043f\u043e\u0442\u043e\u043a\u0438 \u0432 \u0447\u0438\u0441\u0442\u043e\u043c \u0432\u0438\u0434\u0435, \u0442\u0430\u043c \u0432\u0441\u0435 \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u0435\u0435, \u043d\u043e \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438 \u0443\u0436\u0435 \u044f\u0432\u043d\u043e \u0432\u044b\u0445\u043e\u0434\u044f\u0442 \u0437\u0430 \u0440\u0430\u043c\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u041f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u044b\u043d\u0435\u0441\u0442\u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u00ab\u043f\u043e\u0442\u043e\u043a\u00bb \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0442\u044c \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443 \u0438 \u0440\u0430\u0437\u0431\u043e\u0440 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438 \u043e\u0442\u0434\u0430\u0432\u0430\u0442\u044c \u0433\u043e\u0442\u043e\u0432\u0443\u044e \u0446\u0438\u0442\u0430\u0442\u0443, \u043d\u0430\u0437\u043e\u0432\u0435\u043c \u0435\u0451 \u00ab\u0433\u0440\u0430\u0431\u0431\u0435\u0440\u00bb. \u041f\u0443\u0441\u0442\u044c \u0441\u0435\u0431\u0435 \u043a\u0440\u0443\u0442\u0438\u0442\u0441\u044f \u043d\u0430 \u0437\u0430\u0434\u043d\u0435\u043c \u0444\u043e\u043d\u0435 \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0430\u0445, \u0430 \u043c\u044b \u0438\u0437 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0432 \u0446\u0438\u043a\u043b\u0435 \u043b\u043e\u0432\u0438\u0442\u044c \u044d\u0442\u0438 \u0446\u0438\u0442\u0430\u0442\u044b, \u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u043d\u0438\u043c\u0438 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e, \u0438, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0445 \u0443\u0441\u043b\u043e\u0432\u0438\u0439, \u0441\u0432\u043e\u0440\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u0443. \u0417\u0432\u0443\u0447\u0438\u0442 \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0434\u043b\u044f \u0442\u0435\u0445, \u043a\u0442\u043e \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u043e\u043f\u044b\u0442 \u043c\u043d\u043e\u0433\u043e\u043f\u043e\u0442\u043e\u0447\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432 \u0432 \u0443\u0436\u0430\u0441\u0435 \u043a\u0440\u0438\u0447\u0430\u0442\u044c \u043f\u0440\u043e \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0435 \u043d\u044e\u0430\u043d\u0441\u044b \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u0438 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u041d\u043e \u043d\u0430 \u0434\u0435\u043b\u0435 \u0432\u0441\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0435\u0449\u0435 \u043e\u0434\u043d\u043e\u0439 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e Go \u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u041a\u0430\u043d\u0430\u043b\u044b (<a href=\"http:\/\/golang.org\/doc\/effective_go.html#channels\">channels<\/a>). \u0423\u043f\u0440\u043e\u0449\u0435\u043d\u043d\u043e \u043a\u0430\u043d\u0430\u043b \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u043a\u0430\u043a \u0442\u0440\u0443\u0431\u0443, \u0432 \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0437\u0430\u043a\u0438\u0434\u044b\u0432\u0430\u044e\u0442 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0435\u0433\u043e \u043b\u043e\u0432\u044f\u0442. \u041a\u0430\u043d\u0430\u043b\u044b \u0442\u0438\u043f\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u044b \u0438 \u0442\u0440\u0435\u0431\u0443\u044e\u0442 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u2014 \u0432\u043a\u0440\u0430\u0442\u0446\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0441 \u043d\u0438\u043c\u0438 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"go\">func send( c chan int) {    \u0441 &lt;- 15    \/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0432 \u043a\u0430\u043d\u0430\u043b }  func main() { \tc := make(chan int) \/\/\u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u043d\u0430\u043b \u0434\u043b\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0446\u0435\u043b\u044b\u0445 \u0447\u0438\u0441\u0435\u043b (int) \tgo send(ch) \tb:= &lt;-c   \/\/\u0447\u0438\u0442\u0430\u0435\u043c \u0447\u0438\u0441\u043b\u043e \u0438\u0437 \u043a\u0430\u043d\u0430\u043b\u0430     fmt.Println(b) } <\/code><\/pre>\n<p>  \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e <i>go send(ch)<\/i> \u0430 \u043d\u0435 \u043f\u0440\u043e\u0441\u0442\u043e <i>send(\u0441h)<\/i>. \u0414\u0435\u043b\u043e \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043a\u0430\u043d\u0430\u043b\u0430 \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044e\u0442 \u0432\u044b\u0437\u0432\u0430\u0432\u0448\u0443\u044e \u0438\u0445 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440, \u043f\u043e\u043a\u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u043a\u043e\u043d\u0435\u0446 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0442\u043e\u0432 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435. \u042d\u0442\u043e \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438. <br \/>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c &quot;<i>go<\/i>&quot; \u0442\u043e <i>send()<\/i> \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0432 \u0433\u043b\u0430\u0432\u043d\u043e\u043c \u043f\u043e\u0442\u043e\u043a\u0435 \u0438 \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442 \u0435\u0433\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0436\u0434\u0430\u0442\u044c \u043f\u043e\u043a\u0430 \u043a\u0442\u043e-\u0442\u043e \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0433\u043e\u0442\u043e\u0432 \u0437\u0430\u0431\u0440\u0430\u0442\u044c \u043d\u0430\u0448\u0435 \u0447\u0438\u0441\u043b\u043e 15. \u0417\u0430\u0431\u0438\u0440\u0430\u0435\u043c \u043c\u044b \u0435\u0433\u043e \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0439 \u0441\u0442\u0440\u043e\u043a\u0435, \u043d\u043e \u043d\u0430 \u043d\u0435\u0435 \u0443\u0436\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435. Deadlock, \u0432\u0441\u0435 \u0432 \u043f\u0435\u0447\u0430\u043b\u0438.<br \/>  \u0410 \u0432\u043e\u0442 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 &quot;<i>go send()<\/i>&quot; \u0432\u0441\u0435 \u043f\u0440\u043e\u0439\u0434\u0435\u0442 \u0433\u043b\u0430\u0434\u043a\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e <i>send()<\/i> \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u043d\u043e \u0432 \u0441\u0432\u043e\u0435\u043c \u043f\u043e\u0442\u043e\u043a\u0435, \u0438 \u0431\u0443\u0434\u0435\u0442 \u0441\u0442\u043e\u044f\u0442\u044c \u0434\u043e \u0442\u0435\u0445 \u043f\u043e\u0440 \u043f\u043e\u043a\u0430 \u043c\u044b \u043d\u0435 \u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043c \u0447\u0442\u0435\u043d\u0438\u0435 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u2014 \u0430 \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u044d\u0442\u043e \u0432\u0435\u0441\u044c\u043c\u0430 \u0441\u043a\u043e\u0440\u043e \u0438 \u043e\u0431\u043c\u0435\u043d \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0443\u0441\u043f\u0435\u0448\u043d\u043e. <br \/>  \u0422\u0430\u043a \u0436\u0435, \u0435\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043a\u0430\u043d\u0430\u043b \u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<i> send()<\/i>, \u0442\u043e \u043c\u0435\u0440\u0442\u0432\u043e \u0432\u0441\u0442\u0430\u043d\u0435\u0442 \u0443\u0436\u0435 \u043d\u0430\u043e\u0431\u043e\u0440\u043e\u0442 \u0433\u043b\u0430\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043d\u0430 \u0441\u0442\u0440\u043e\u0447\u043a\u0435 <i>b:= &lt;-c<\/i>, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0435\u0439 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435\u0447\u0435\u0433\u043e. <br \/>  \u041a\u0430\u043d\u0430\u043b\u044b \u044d\u0442\u043e first-class \u043e\u0431\u044a\u0435\u043a\u0442\u044b, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438\u0445 \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c, \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0442\u044c \u0438 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0442\u044c \u043a\u0430\u043a \u0431\u0443\u0434\u0435\u0442 \u0443\u0434\u043e\u0431\u043d\u043e.<\/p>\n<p>  \u0423 \u043d\u0430\u0441 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0435\u0442 \u00ab\u0433\u0440\u0430\u0431\u0431\u0435\u0440\u00bb \u0430 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u043c\u044b \u0438\u0445 \u0431\u0443\u0434\u0435\u043c \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435. <\/p>\n<p>  \u0426\u0438\u0442\u0430\u0442\u0430 \u0432 \u043a\u043e\u0434\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043b\u0435\u0436\u0438\u0442 \u0432 div \u0441 \u043a\u043b\u0430\u0441\u0441\u043e\u043c \u00abfi_text\u00bb. \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0435\u0451 \u0434\u043e\u0441\u0442\u0430\u0442\u044c \u0432 \u00ab\u0433\u0440\u0430\u0431\u0431\u0435\u0440\u0435\u00bb \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043f\u0430\u043a\u0435\u0442\u043e\u043c <a href=\"http:\/\/github.com\/opesun\/goquery\">goquery<\/a> \u2014 \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c html-\u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0435\u0451 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443 \u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u043e\u043c \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440\u043e\u0432 \u0430-\u043b\u044f jQuery. \u042d\u0442\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u043d\u0435\u0442 \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u043d\u0443\u0436\u043d\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c:  <\/p>\n<pre><code class=\"dos\">#\u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c: go get github.com\/opesun\/goquery <\/code><\/pre>\n<p>  \u0418 \u0432 \u0440\u0430\u0437\u0434\u0435\u043b \u0438\u043c\u043f\u043e\u0440\u0442\u0430 \u0432 \u043a\u043e\u0434\u0435 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043f\u0430\u043a\u0435\u0442\u044b<i> \u00abgithub.com\/opesun\/goquery\u00bb, \u00abstrings\u00bb<\/i> \u0438<i> \u00abtime\u00bb<\/i> \u2014 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u0434\u043b\u044f \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438, \u043d\u0435 \u0431\u0443\u0434\u0435\u043c \u0436\u0435 \u043c\u044b \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0434\u0435\u0440\u0433\u0430\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0441\u0432\u043e\u0438\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u0430\u043c\u0438 (\u043d\u0443, \u0438 \u0442\u0430\u043a \u0438 \u0442\u0430\u043a \u0431\u0443\u0434\u0435\u043c, \u043d\u043e \u0432\u044b \u043c\u0435\u043d\u044f \u043f\u043e\u043d\u044f\u043b\u0438):  <\/p>\n<pre><code class=\"go\">import ( \t&quot;flag&quot; \t&quot;fmt&quot; \t&quot;github.com\/opesun\/goquery&quot; \t&quot;strings&quot; \t&quot;time&quot; ) <\/code><\/pre>\n<p>  \u0411\u043b\u0438\u0436\u0435 \u043a \u0434\u0435\u043b\u0443 \u2014 \u043f\u0438\u0448\u0435\u043c \u043a\u043e\u0434 \u00ab\u0433\u0440\u0430\u0431\u0431\u0435\u0440\u0430\u00bb:  <\/p>\n<pre><code class=\"go\">func grab() &lt;-chan string {  \/\/\u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0432\u0435\u0440\u043d\u0435\u0442 \u043a\u0430\u043d\u0430\u043b, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0447\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u043f\u0430 string \tc := make(chan string)  \tfor i := 0; i &lt; WORKERS; i++ { \/\/\u0432 \u0446\u0438\u043a\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043d\u0443\u0436\u043d\u043e\u0435 \u043d\u0430\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0433\u043e\u0443\u0440\u0443\u0442\u0438\u043d - worker'o\u0432 \t\tgo func() {  \t\t\tfor { \/\/\u0432 \u0432\u0435\u0447\u043d\u043e\u043c \u0446\u0438\u043a\u043b\u0435 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0435 \t\t\t\tx, err := goquery.ParseUrl(&quot;http:\/\/vpustotu.ru\/moderation\/&quot;) \t\t\t\tif err == nil { \t\t\t\t\tif s := strings.TrimSpace(x.Find(&quot;.fi_text&quot;).Text()); s != &quot;&quot; { \t\t\t\t\t\tc &lt;- s \/\/\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u0438\u0445 \u0432 \u043a\u0430\u043d\u0430\u043b \t\t\t\t\t} \t\t\t\t} \t\t\t\ttime.Sleep(100 * time.Millisecond) \t\t\t} \t\t}() \t} \tfmt.Println(&quot;\u0417\u0430\u043f\u0443\u0449\u0435\u043d\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432: &quot;, WORKERS) \treturn c } <\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0438 \u043f\u043e\u0447\u0442\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432.<br \/>  \u041c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0437\u0430\u043c\u044b\u043a\u0430\u043d\u0438\u0435, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u043e\u0435 \u043d\u0430\u043c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u00ab\u0433\u043e\u0443\u0440\u0443\u0442\u0438\u043d\u00bb \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0449\u0438\u0445 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043a\u0430\u043d\u0430\u043b, \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u043c\u044b\u0439 <i>grab()<\/i>. \u0422\u0430\u043a\u043e\u0439 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440.<br \/>  \u041f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e <i>x.Find(&quot;.fi_text&quot;).Text()<\/i> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u043b\u0430 \u043c\u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u043d\u0443\u0436\u043d\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 \u0441 \u043f\u0440\u043e\u0431\u0435\u043b\u0430\u043c\u0438 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0438 \u043d\u0430 \u043a\u043e\u043d\u0446\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u043d\u0435 \u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u044f, \u043e\u0447\u0438\u0449\u0430\u0435\u043c \u0435\u0451 \u0444\u0443\u043d\u043a\u0446\u0438\u0435\u0439 <i>TrimSpace <\/i>\u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044f <i>strings<\/i>.<\/p>\n<p>  \u0418\u0442\u0430\u043a \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u0433\u043e\u0442\u043e\u0432, \u043c\u043e\u0436\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u043e\u043d \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043c\u043e\u0434\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e main():  <\/p>\n<pre><code class=\"go\">func main() { \tquote_chan := grab() \tfor i := 0; i &lt; 5; i++ { \/\/\u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c 5 \u0446\u0438\u0442\u0430\u0442 \u0438 \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u044f\u0435\u043c\u0441\u044f \t\tfmt.Println(&lt;-quote_chan, &quot;\\n&quot;) \t} } <\/code><\/pre>\n<p>  \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u0438 \u0432\u0438\u0434\u0438\u043c \u0447\u0442\u043e \u0432\u0441\u0435 \u0438\u0434\u0435\u0442 \u043f\u043e \u043f\u043b\u0430\u043d\u0443: \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u0438\u044f \u043b\u044c\u044e\u0442\u0441\u044f \u0432 \u043d\u0430\u0448 \u043a\u0430\u043d\u0430\u043b \u0448\u0438\u0440\u043e\u043a\u0438\u043c \u043f\u043e\u0442\u043e\u043a\u043e\u043c! <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/30b\/975\/a04\/30b975a0470e6d17682226428c041cd0.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u043c \u043d\u0430\u0434 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u0446\u0438\u043a\u043b\u043e\u043c, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c, \u0441\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u043f\u043b\u0430\u043d\u0443, \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c\u0441\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f. \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f\u043c \u0438 \u043f\u043e\u0436\u0435\u043b\u0430\u043d\u0438\u044f\u043c, \u043d\u0430\u043c \u043d\u0443\u0436\u0435\u043d \u0446\u0438\u043a\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439: <\/p>\n<ul>\n<li>\u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0446\u0438\u0442\u0430\u0442\u044b.<\/li>\n<li> \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442 \u0438\u0445 \u043d\u0430 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u044f \u0445\u0435\u0448 \u0446\u0438\u0442\u0430\u0442\u044b \u0441 \u0443\u0436\u0435 \u0438\u043c\u0435\u044e\u0449\u0438\u043c\u0438\u0441\u044f<\/li>\n<li> \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442 \u0446\u0438\u0442\u0430\u0442\u0443 \u0438 \u0445\u0435\u0448 \u0432 \u0444\u0430\u0439\u043b\u044b \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u043e\u0432\u043e\u0439 \u0446\u0438\u0442\u0430\u0442\u044b<\/li>\n<li> \u0441\u043b\u0435\u0434\u0438\u0442 \u0437\u0430 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e\u043c \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432 \u043f\u043e\u0434\u0440\u044f\u0434<\/li>\n<li>\u043e\u0442\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043a\u0430\u0436\u0434\u044b\u0435 REPORT_PERIOD \u0441\u0435\u043a\u0443\u043d\u0434<\/li>\n<li>\u043d\u0443 \u0438 \u0442\u0430\u043a \u043a\u0430\u043a \u0446\u0438\u043a\u043b \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439, \u0431\u0443\u0434\u0435\u043c \u043b\u043e\u0432\u0438\u0442\u044c ctrl-c \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u043e \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u043d\u0435\u0433\u043e \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f.<\/li>\n<\/ul>\n<p>  \u0421\u043e \u0441\u0431\u043e\u0440\u043e\u043c \u0443 \u043d\u0430\u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0443\u0436\u0435 \u043d\u0435\u0442, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u043c\u0441\u044f \u0441 \u0445\u0435\u0448\u0430\u043c\u0438. <br \/>  \u0414\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u044b \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u043f\u0440\u043e\u0441\u0442\u043e \u0431\u0440\u0430\u0442\u044c md5 \u043e\u0442 \u0446\u0438\u0442\u0430\u0442\u044b. \u0425\u0440\u0430\u043d\u0438\u0442\u044c \u0445\u0435\u0448\u0438 \u0431\u0443\u0434\u0435\u043c \u0432 <a href=\"http:\/\/golang.org\/doc\/effective_go.html#maps\">map<\/a>(\u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 \u0434\u043b\u044f key-value \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449), \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u0438\u0445 \u043b\u0435\u0433\u043a\u043e \u0438 \u0431\u044b\u0441\u0442\u0440\u043e \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c, \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u044b \u2014 \u044d\u0442\u043e \u0443\u0436\u0435 \u0434\u0435\u043b\u043e \u0442\u0435\u0445\u043d\u0438\u043a\u0438. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0432 Go \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u044f\u0437\u044b\u043a\u043e\u0432, \u0442\u0430\u043a \u0447\u0442\u043e \u0442\u0443\u0442 \u0442\u043e\u0436\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c.<\/p>\n<p>  \u041e\u0442\u0447\u0435\u0442 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"http:\/\/golang.org\/pkg\/time\/#Ticker\">Ticker&#8217;a<\/a> \u0438\u0437 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 &quot;<i>time<\/i>&quot;. \u042d\u0442\u043e \u043f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0442\u0430\u0439\u043c\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0439 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u043a \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u043f\u043e\u0441\u044b\u043b\u0430\u0442\u044c \u043d\u0435\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0432 \u0441\u0432\u043e\u0439 \u043a\u0430\u043d\u0430\u043b \u2014 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u043b\u0435\u0434\u0438\u0442\u044c \u0437\u0430 \u043a\u0430\u043d\u0430\u043b\u043e\u043c \u0438 \u043f\u0440\u0438 \u043f\u043e\u0441\u0442\u0443\u043f\u043b\u0435\u043d\u0438\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443.<\/p>\n<p>  \u0410 \u043b\u043e\u0432\u0438\u0442\u044c \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u043d\u0430 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0435 \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0430\u043a\u0435\u0442\u0430 &quot;<i>os\/signal<\/i>&quot;, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0435\u0433\u043e \u043f\u043e\u0432\u0435\u0441\u0438\u0442\u044c \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440, \u043f\u043e\u0441\u044b\u043b\u0430\u044e\u0449\u0438\u0439 \u0432 \u043a\u0430\u043d\u0430\u043b \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u044f \u043e \u0441\u043e\u0431\u044b\u0442\u0438\u044f\u0445.<\/p>\n<p>  \u041f\u043b\u0430\u043d \u0433\u043e\u0442\u043e\u0432 \u2014 \u043d\u043e \u0435\u0441\u0442\u044c \u043e\u0434\u0438\u043d \u043d\u044e\u0430\u043d\u0441: \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0438 \u0440\u0430\u0437\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u0430, \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435, \u043e\u0434\u043d\u0430\u043a\u043e \u0440\u0430\u043d\u0435\u0435 \u0433\u043e\u0432\u043e\u0440\u0438\u043b\u043e\u0441\u044c, \u0447\u0442\u043e \u043f\u0440\u0438 \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043a \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u0435\u0442\u0441\u044f, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043c\u044b \u0441\u043c\u043e\u0436\u0435\u043c \u0436\u0434\u0430\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0443\u043c \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043a\u0430\u043d\u0430\u043b\u0443 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e. <br \/>  \u041d\u043e go \u043d\u0435 \u0437\u0440\u044f \u0435\u0441\u0442 \u0441\u0432\u043e\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u2014 \u0435\u0449\u0435 \u043e\u0434\u043d\u0438\u043c \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u043c \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442\u043e\u043c \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f <a href=\"http:\/\/golang.org\/ref\/spec#Select_statements\">select<\/a>.<br \/>  <i>Select<\/i> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0436\u0438\u0434\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u043d\u0435\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0430 \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u0431\u043b\u043e\u043a\u0438\u0440\u0443\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0430 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u043d\u0430 \u0432\u0440\u0435\u043c\u044f \u0438\u0445 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438. \u0422\u043e \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e!<\/p>\n<p>  \u041f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c \u043a \u043a\u043e\u0434\u0443! \u0414\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0432 \u0441\u0435\u043a\u0446\u0438\u044e \u0438\u043c\u043f\u043e\u0440\u0442\u0430, \u0442\u0435\u043f\u0435\u0440\u044c \u043e\u043d\u0430 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"go\">import ( \t&quot;flag&quot; \t&quot;fmt&quot; \t&quot;github.com\/opesun\/goquery&quot; \t&quot;strings&quot; \t&quot;time&quot; \t\/\/\u041f\u0430\u043a\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0438\u0433\u043e\u0434\u044f\u0442\u0441\u044f \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438: \t&quot;io&quot; \t&quot;os&quot; \t&quot;os\/signal&quot; \t\/\/\u0410 \u0432\u043e\u0442 \u044d\u0442\u0438 - \u0434\u043b\u044f \u0432\u044b\u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0445\u0435\u0448\u0435\u0439: \t&quot;crypto\/md5&quot; \t&quot;encoding\/hex&quot; ) <\/code><\/pre>\n<p>  \u0414\u0430, \u043d\u0435\u043c\u0430\u043b\u043e \u0432\u0441\u0435\u0433\u043e\u2026 \u0423\u0447\u0438\u0442\u044b\u0432\u0430\u044f \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043b\u0438\u043d\u043a\u043e\u0432\u043a\u0443 Go \u0440\u0430\u0437\u043c\u0435\u0440 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f \u0432\u043f\u0435\u0447\u0430\u0442\u043b\u044f\u044e\u0449\u0438\u043c!<br \/>  \u041d\u043e \u043d\u0435 \u0432\u0440\u0435\u043c\u044f \u0433\u0440\u0443\u0441\u0442\u0438\u0442\u044c, \u043e\u0431\u044a\u044f\u0432\u0438\u043c \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435 \u0434\u043b\u044f \u0445\u0435\u0448\u0435\u0439:  <\/p>\n<pre><code class=\"go\">var ( \t... \tused          map[string]bool = make(map[string]bool) \/\/map \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043b\u044e\u0447\u0435\u0439 \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u0442\u0440\u043e\u043a\u0438, \u0430 \u0434\u043b\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 - \u0431\u0443\u043b\u0435\u0432 \u0442\u0438\u043f. ) <\/code><\/pre>\n<p>  \u0418, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043d\u0430\u0448\u0430 \u043e\u0441\u043d\u043e\u0432\u043d\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0435\u0432\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0432:  <\/p>\n<pre><code class=\"go\">func main() { \t\/\/\u041e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0444\u0430\u0439\u043b \u0441 \u0446\u0438\u0442\u0430\u0442\u0430\u043c\u0438... \tquotes_file, err := os.OpenFile(QUOTES_FILE, os.O_APPEND|os.O_CREATE, 0666) \tcheck(err) \tdefer quotes_file.Close() \t \t\/\/...\u0438 \u0444\u0430\u0439\u043b \u0441 \u0445\u0435\u0448\u0430\u043c\u0438 \thash_file, err := os.OpenFile(HASH_FILE, os.O_APPEND|os.O_CREATE, 0666) \tcheck(err) \tdefer hash_file.Close()  \t\/\/\u0421\u043e\u0437\u0434\u0430\u0435\u043c Ticker \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u043e\u0432\u0435\u0449\u0430\u0442\u044c \u043d\u0430\u0441 \u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0440\u0430 \u043e\u0442\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043e \u0440\u0430\u0431\u043e\u0442\u0435 \tticker := time.NewTicker(time.Duration(REPORT_PERIOD) * time.Second) \tdefer ticker.Stop()  \t\/\/\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u043a\u0430\u043d\u0430\u043b, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u0432\u0438\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f, \u0438 \u043f\u0440\u0438\u0432\u044f\u0437\u044b\u0432\u0430\u0435\u043c \u043a \u043d\u0435\u043c\u0443 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440... \tkey_chan := make(chan os.Signal, 1) \tsignal.Notify(key_chan, os.Interrupt)  \t\/\/...\u0438 \u0432\u0441\u0435 \u0447\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0434\u043b\u044f \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u0445\u0435\u0448\u0435\u0439 \thasher := md5.New() \t \t\/\/\u0421\u0447\u0435\u0442\u0447\u0438\u043a\u0438 \u0446\u0438\u0442\u0430\u0442 \u0438 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u043e\u0432 \tquotes_count, dup_count := 0, 0  \t\/\/\u0412\u0441\u0435 \u0433\u043e\u0442\u043e\u0432\u043e, \u043f\u043e\u0435\u0445\u0430\u043b\u0438! \tquotes_chan := grab() \tfor { \t\tselect { \t\tcase quote := &lt;-quotes_chan: \/\/\u0435\u0441\u043b\u0438 &quot;\u043f\u0440\u0438\u0448\u043b\u0430&quot; \u043d\u043e\u0432\u0430\u044f \u0446\u0438\u0442\u0430\u0442\u0430: \t\t\tquotes_count++ \t\t\t\/\/\u0441\u0447\u0438\u0442\u0430\u0435\u043c \u0445\u0435\u0448, \u0438 \u043a\u043e\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u0435\u043c \u0435\u0433\u043e \u0432 \u0441\u0442\u0440\u043e\u043a\u0443: \t\t\thasher.Reset() \t\t\tio.WriteString(hasher, quote) \t\t\thash := hasher.Sum(nil) \t\t\thash_string := hex.EncodeToString(hash) \t\t\t\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0445\u0435\u0448\u0430 \u0446\u0438\u0442\u0430\u0442\u044b \t\t\tif !used[hash_string] { \t\t\t\t\/\/\u0432\u0441\u0435 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435 - \u0437\u0430\u043d\u043e\u0441\u0438\u043c \u0445\u0435\u0448 \u0432 \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435, \u0438 \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0435\u0433\u043e \u0438 \u0446\u0438\u0442\u0430\u0442\u0443 \u0432 \u0444\u0430\u0439\u043b\u044b \t\t\t\tused[hash_string] = true \t\t\t\thash_file.Write(hash) \t\t\t\tquotes_file.WriteString(quote + &quot;\\n\\n\\n&quot;) \t\t\t\tdup_count = 0 \t\t\t} else { \t\t\t\t\/\/\u043f\u043e\u043b\u0443\u0447\u0435\u043d \u043f\u043e\u0432\u0442\u043e\u0440 - \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u043d\u0435 \u043f\u043e\u0440\u0430 \u043b\u0438 \u0437\u0430\u043a\u0440\u0443\u0433\u043b\u044f\u0442\u044c\u0441\u044f? \t\t\t\tif dup_count++; dup_count == DUP_TO_STOP { \t\t\t\t\tfmt.Println(&quot;\u0414\u043e\u0441\u0442\u0438\u0433\u043d\u0443\u0442 \u043f\u0440\u0435\u0434\u0435\u043b \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432, \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u0412\u0441\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439: &quot;, len(used)) \t\t\t\t\treturn \t\t\t\t} \t\t\t} \t\tcase &lt;-key_chan: \/\/\u0435\u0441\u043b\u0438 \u043f\u0440\u0438\u0448\u043b\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0442 \u043d\u043e\u0442\u0438\u0444\u0438\u043a\u0430\u0442\u043e\u0440\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432: \t\t\tfmt.Println(&quot;CTRL-C: \u0417\u0430\u0432\u0435\u0440\u0448\u0430\u044e \u0440\u0430\u0431\u043e\u0442\u0443. \u0412\u0441\u0435\u0433\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439: &quot;, len(used)) \t\t\treturn \t\tcase &lt;-ticker.C: \/\/\u0438, \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043d\u0435 \u043f\u043e\u0440\u0430 \u043b\u0438 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u043e\u0442\u0447\u0435\u0442 \t\t\tfmt.Printf(&quot;\u0412\u0441\u0435\u0433\u043e %d \/ \u041f\u043e\u0432\u0442\u043e\u0440\u043e\u0432 %d (%d \u0437\u0430\u043f\u0438\u0441\u0435\u0439\/\u0441\u0435\u043a) \\n&quot;, len(used), dup_count, quotes_count\/REPORT_PERIOD) \t\t\tquotes_count = 0 \t\t} \t} } <\/code><\/pre>\n<p>  \u041a\u043e\u0434 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u043f\u0440\u043e\u0437\u0440\u0430\u0447\u0435\u043d, \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432:<br \/>  \u0424\u0443\u043d\u043a\u0446\u0438\u044f <i>check()<\/i> \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0439 \u2014 \u043e\u043d\u0430 \u0442\u0443\u0442 \u0434\u043b\u044f \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043e\u0442\u043a\u0440\u044b\u0442\u0438\u044f \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u043e\u0448\u0438\u0431\u043a\u0438. \u0412\u043e\u0442 \u0435\u0451 \u043a\u043e\u0434, \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u043c \u043a\u0443\u0434\u0430-\u043d\u0438\u0431\u0443\u0434\u044c \u043f\u0435\u0440\u0435\u0434 <i>main()<\/i>:  <\/p>\n<pre><code class=\"go\">func check(e error) { \tif e != nil { \t\tpanic(e) \t} } <\/code><\/pre>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442: \u043c\u044b \u00ab\u0441\u0440\u0430\u0437\u0443\u00bb \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u043c \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0435 \u0444\u0430\u0439\u043b\u0430, \u0445\u043e\u0442\u044f \u043f\u043e\u0442\u043e\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u0441\u044f \u0441 \u043d\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c:  <\/p>\n<pre><code class=\"go\">defer quotes_file.Close() ... defer hash_file.Close() ... \/\/\u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u0436\u0435 \u043c\u044b \u0438 \u0441 \u0442\u0438\u043a\u0435\u0440\u043e\u043c \u043f\u043e\u0441\u0442\u0443\u043f\u0430\u0435\u043c: defer ticker.Stop() <\/code><\/pre>\n<p>  \u0421\u0443\u0442\u044c \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0432 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0441 defer \u043c\u044b \u043e\u0442\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u043c \u0435\u0451 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435: \u043e\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0431\u044b\u043b \u0432\u044b\u0437\u043e\u0432 defer (\u043f\u0440\u043e\u0449\u0435 \u0433\u043e\u0432\u043e\u0440\u044f \u2014 \u043f\u0440\u044f\u043c\u043e \u043f\u0435\u0440\u0435\u0434 return \u00ab\u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044f\u00bb). <\/p>\n<p>  \u041c\u043e\u0436\u043d\u043e \u0443\u0436\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0438 \u0440\u0430\u0434\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044e \u00ab\u0443\u0436\u0430\u0441\u043d\u043e \u043d\u0443\u0436\u043d\u043e\u0439 \u043c\u0438\u0441\u0441\u0438\u0438\u00bb, \u043d\u043e \u043e\u0441\u0442\u0430\u043b\u0430\u0441\u044c \u0435\u0449\u0435 \u043e\u0434\u043d\u0430 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0430\u044f \u0434\u0435\u0442\u0430\u043b\u044c \u2014 \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0447\u0442\u0435\u043d\u0438\u044f \u0445\u0435\u0448\u0435\u0439 \u0438\u0437 \u0444\u0430\u0439\u043b\u0430, \u043d\u0430 \u0441\u043b\u0443\u0447\u0430\u0439 \u0435\u0441\u043b\u0438 \u043c\u044b \u0437\u0430\u0445\u043e\u0442\u0438\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043d\u043e \u043d\u0435 \u0436\u0435\u043b\u0430\u0435\u043c \u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u043c \u0444\u0430\u0439\u043b\u0435 \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b. \u0412\u043e\u0442 \u043e\u0434\u0438\u043d \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432, \u043a\u0430\u043a \u044d\u0442\u043e \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c:  <\/p>\n<pre><code class=\"go\">func readHashes() { \t\/\/\u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c \u0444\u0430\u0439\u043b \u043d\u0430 \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \tif _, err := os.Stat(HASH_FILE); err != nil { \t\tif os.IsNotExist(err) { \t\t\tfmt.Println(&quot;\u0424\u0430\u0439\u043b \u0445\u0435\u0448\u0435\u0439 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d, \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u043d\u043e\u0432\u044b\u0439.&quot;) \t\t\treturn \t\t} \t}  \tfmt.Println(&quot;\u0427\u0442\u0435\u043d\u0438\u0435 \u0445\u0435\u0448\u0435\u0439...&quot;) \thash_file, err := os.OpenFile(HASH_FILE, os.O_RDONLY, 0666) \tcheck(err) \tdefer hash_file.Close() \t\/\/\u0447\u0438\u0442\u0430\u0442\u044c \u0431\u0443\u0434\u0435\u043c \u0431\u043b\u043e\u043a\u0430\u043c\u0438 \u043f\u043e 16 \u0431\u0430\u0439\u0442 - \u043a\u0430\u043a \u0440\u0430\u0437 \u043e\u0434\u0438\u043d \u0445\u0435\u0448: \tdata := make([]byte, 16) \tfor { \t\tn, err := hash_file.Read(data) \/\/n \u0432\u0435\u0440\u043d\u0435\u0442 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043d\u044b\u0445 \u0431\u0430\u0439\u0442, \u0430 err - \u043e\u0448\u0438\u0431\u043a\u0443, \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u0442\u0430\u043a\u043e\u0432\u043e\u0439. \t\tif err != nil { \t\t\tif err == io.EOF { \t\t\t\tbreak \t\t\t} \t\t\tpanic(err) \t\t} \t\tif n == 16 { \t\t\tused[hex.EncodeToString(data)] = true \t\t} \t}  \tfmt.Println(&quot;\u0417\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u043e. \u041f\u0440\u043e\u0447\u0438\u0442\u0430\u043d\u043e \u0445\u0435\u0448\u0435\u0439: &quot;, len(used)) }  <\/code><\/pre>\n<p>  \u0412\u043e\u0442 \u0438 \u0432\u0441\u0435, \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0435 \u0437\u0430\u0431\u044b\u0442\u044c \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u044c \u0432\u044b\u0437\u043e\u0432 readHashes() \u0432 \u043d\u0430\u0447\u0430\u043b\u043e main()  <\/p>\n<pre><code class=\"go\">func main() { \treadHashes() \t... <\/code><\/pre>\n<p>  \u0413\u043e\u0442\u043e\u0432\u043e! \u0411\u043e\u0435\u0432\u044b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0438:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/051\/83f\/06d\/05183f06d93ac8816d6efbf530fbb134.png\"\/> <\/p>\n<p>  \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u0440\u0430\u0431\u043e\u0442\u044b:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage3\/74e\/9ed\/a11\/74e9eda114779583e1d10d000f1733ad.png\"\/><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u043e\u0432 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0445\u0435\u0448\u0435\u0439 \u043f\u0440\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u043a\u0435 \u0442\u043e\u0436\u0435. \u041f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f, \u0434\u0430 \u0438 \u0441\u0430\u043c\u0430 \u0442\u043e\u0436\u0435 \u0443\u043c\u0435\u0435\u0442. \u0418\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0444\u0430\u0439\u043b, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0432\u0435\u043b\u0438\u043a\u043e\u0432\u0430\u0442 \u2014 \u043d\u043e \u0438 Go \u0441 \u043d\u0438\u043c.<br \/>  \u041d\u0430\u0448\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043b\u044f \u0432\u044b\u0433\u0440\u0443\u0437\u043a\u0438 <s>\u0432\u0441\u044f\u043a\u043e\u0439 \u0435\u0440\u0443\u043d\u0434\u044b<\/s>\u043e\u0447\u0435\u043d\u044c \u0432\u0430\u0436\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043d\u043e\u0447\u0438 \u0433\u043e\u0442\u043e\u0432\u0430 \u0438 \u0434\u0435\u043b\u0430\u0435\u0442 \u0447\u0442\u043e \u043c\u044b \u043e\u0442 \u043d\u0435\u0435 \u0445\u043e\u0442\u0435\u043b\u0438. <br \/>  \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u0439, \u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0431\u043e\u0435\u0432\u043e\u0439 \u0437\u0430\u0434\u0430\u0447\u0438 \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0431\u043e\u043b\u0435\u0435 \u0447\u0435\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e!<\/p>\n<p>  <a href=\"http:\/\/pastebin.com\/TJjBLLe5\">\u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0446\u0435\u043b\u0438\u043a\u043e\u043c \u043d\u0430 Pastbin.com<\/a><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0432\u0430\u0441 \u0437\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u043b Go \u0438 \u0435\u0433\u043e \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u2014 \u0432\u043e\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0441\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0441\u0435\u0442\u0438\u0442\u044c:<\/p>\n<p>  <a href=\"http:\/\/tour.golang.org\">tour.golang.org<\/a> \u2014 \u041e\u043d\u043b\u0430\u0439\u043d \u0442\u0443\u0440 \u043f\u043e \u044f\u0437\u044b\u043a\u0443, \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u043f\u0440\u044f\u043c\u043e \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u2014 \u043e\u0447\u0435\u043d\u044c \u0443\u0432\u043b\u0435\u043a\u0430\u0442\u0435\u043b\u044c\u043d\u043e.<\/p>\n<p>  <a href=\"https:\/\/gobyexample.com\/\">gobyexample.com\/<\/a> \u2014 \u041f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0442\u0438\u043f\u043e\u0432\u044b\u0445 \u0437\u0430\u0434\u0430\u0447<\/p>\n<p>  <a href=\"http:\/\/golang.org\/ref\/spec\">golang.org\/ref\/spec<\/a> \u2014 \u0421\u043f\u0435\u0446\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044f \u044f\u0437\u044b\u043a\u0430<\/p>\n<p>  <a href=\"http:\/\/golang.org\/doc\/effective_go.html\">golang.org\/doc\/effective_go.html<\/a> \u2014 \u0421\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u0442\u0435\u043c\u0443 \u00ab\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0441\u043e \u0432\u0441\u0435\u0439 \u044d\u0442\u043e\u0439 \u0444\u0438\u0433\u043d\u0435\u0439 \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0432\u0437\u043b\u0435\u0442\u0435\u0442\u044c\u00bb \u2014 \u043a\u0430\u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0432\u0437\u043b\u0435\u0442\u0430\u0442\u044c \u0438 \u043b\u0435\u0442\u0430\u0442\u044c \u043d\u0430 Go<\/p>\n<p>  \u0413\u0440\u0443\u043f\u043f\u044b Google \u043f\u043e\u0441\u0432\u044f\u0449\u0435\u043d\u043d\u044b\u0435 Go \u2014 &quot;<a href=\"https:\/\/groups.google.com\/forum\/#!forum\/golang-nuts\">https:\/\/groups.google.com\/forum\/#!forum\/golang-nuts<\/a>&quot; \u0438 &quot;<a href=\"https:\/\/groups.google.com\/forum\/#!forum\/golang-ru\">https:\/\/groups.google.com\/forum\/#!forum\/golang-ru<\/a>&quot;<\/p>\n<p>  <a href=\"http:\/\/godoc.org\/\">godoc.org\/<\/a> \u2014 \u041f\u043e\u0438\u0441\u043a \u043f\u043e \u043f\u0430\u043a\u0435\u0442\u0430\u043c Go \u0438 \u0438\u0445 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438, \u043f\u0440\u0438\u0447\u0435\u043c \u043a\u0430\u043a \u043f\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u043c \u0442\u0430\u043a \u0438 \u043f\u043e \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043c, \u043e\u0442\u043b\u0438\u0447\u043d\u0430\u044f \u0430\u043d\u0442\u0438\u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043d\u0430\u044f \u0432\u0435\u0449\u044c!<\/p>\n<p>  \u0423\u0434\u0430\u0447\u0438! \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/197598\/\"> http:\/\/habrahabr.ru\/post\/197598\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u041f\u0440\u043e \u044f\u0437\u044b\u043a Go \u043e\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b Google \u0441\u043b\u044b\u0448\u0430\u043b\u0438, \u043d\u0430\u0432\u0435\u0440\u043d\u043e\u0435, \u0432\u0441\u0435. \u0410 \u0432\u043e\u0442 \u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b\u0438 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435, \u0438 \u043e\u0447\u0435\u043d\u044c \u0437\u0440\u044f \u2014 \u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441 <s>\u0441\u0443\u0441\u043b\u0438\u043a\u0430\u043c\u0438<\/s> Go \u044d\u0442\u043e \u043c\u043e\u0440\u0435 \u0443\u0434\u043e\u0432\u043e\u043b\u044c\u0441\u0442\u0432\u0438\u044f, \u0432 \u0447\u0435\u043c \u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u0443\u0431\u0435\u0434\u0438\u043b\u0441\u044f \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u043e\u043f\u044b\u0442\u0435.<br \/>  \u041d\u0430\u0447\u0438\u043d\u0430\u0442\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u0441\u0442\u0432\u043e \u0441 \u043d\u043e\u0432\u044b\u043c \u044f\u0437\u044b\u043a\u043e\u043c \u0437\u0430\u0431\u0430\u0432\u043d\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f, \u043d\u0435 \u0434\u043e\u043b\u0433\u043e \u0434\u0443\u043c\u0430\u044f, \u0432\u0437\u044f\u043b \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043f\u0430\u0432\u0448\u0443\u044e\u0441\u044f \u0437\u0430\u0434\u0430\u0447\u0443 \u201c\u0438\u0437 \u0436\u0438\u0437\u043d\u0438, \u0441\u0430\u043c\u043e\u0439 \u043f\u0435\u0440\u0432\u043e\u0441\u0442\u0435\u043f\u0435\u043d\u043d\u043e\u0439 \u0432\u0430\u0436\u043d\u043e\u0441\u0442\u0438\u201d:<\/p>\n<p>  \u0415\u0441\u0442\u044c \u0432 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0435 \u0441\u0430\u0439\u0442 <a href=\"http:\/\/vpustotu.ru\">http:\/\/vpustotu.ru<\/a> \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043b\u044e\u0431\u043e\u0439 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u0430\u043d\u043e\u043d\u0438\u043c\u043d\u043e \u0432\u044b\u0441\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e \u043d\u0430\u0431\u043e\u043b\u0435\u0432\u0448\u0435\u043c. \u0412\u0441\u0435 \u0432\u044b\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u043d\u0438\u044f (\u0432 \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u043c \u0431\u0443\u0434\u0443 \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0438\u0445 \u201c\u0446\u0438\u0442\u0430\u0442\u0430\u043c\u0438\u201d) \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043f\u0430\u0434\u0430\u044e\u0442 \u0432 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u044e (\u0430\u043d\u0430\u043b\u043e\u0433 \u201c\u0431\u0435\u0437\u0434\u043d\u044b\u201d \u0431\u0430\u0448\u043e\u0440\u0433\u0430), \u0433\u0434\u0435 \u043b\u044e\u0431\u043e\u0439 \u0436\u0435\u043b\u0430\u044e\u0449\u0438\u0439 \u043c\u043e\u0436\u0435\u0442 \u043e\u0446\u0435\u043d\u0438\u0442\u044c \u043f\u043e\u043b\u0435\u0442 \u043c\u044b\u0441\u043b\u0438 \u0438 \u043f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u0442\u044c \u0437\u0430 \u0446\u0438\u0442\u0430\u0442\u0443 \u0432 \u0441\u0442\u0438\u043b\u0435 \u201c\u041e\u0433\u043e!\u201d \u0438\u043b\u0438 \u201c\u0415\u0440\u0443\u043d\u0434\u0430!\u201d. \u041d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 (<a href=\"http:\/\/vpustotu.ru\/moderation\/\">http:\/\/vpustotu.ru\/moderation\/<\/a>) \u043d\u0430\u043c \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0442 \u0441\u043b\u0443\u0447\u0430\u0439\u043d\u0443\u044e \u0446\u0438\u0442\u0430\u0442\u0443, \u0441\u0441\u044b\u043b\u043a\u0438 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u0441\u0441\u044b\u043b\u043a\u0443 \u201c\u0415\u0449\u0435\u201d, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0435\u0434\u0435\u0442 \u043d\u0430 \u044d\u0442\u0443 \u0436\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443. \u041f\u043e\u0449\u0435\u043b\u043a\u0430\u0439\u0442\u0435, \u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u0440\u043e\u0441\u0442\u043e.<\/p>\n<p>  <b>\u0418 \u0432\u043e\u0442 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0430 \u0437\u0430\u0434\u0430\u0447\u0430<\/b> \u2013 \u0441\u0440\u043e\u0447\u043d\u043e, \u043f\u043e\u0434 \u043f\u043e\u043a\u0440\u043e\u0432\u043e\u043c \u0442\u0435\u043c\u043d\u043e\u0442\u044b, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0441\u0435\u0431\u0435 \u043f\u043e\u043b\u043d\u044b\u0439 \u0434\u0430\u043c\u043f \u0432\u0441\u0435\u0445 \u0446\u0438\u0442\u0430\u0442 \u043d\u0430 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u0434\u0430\u043b\u044c\u043d\u0435\u0439\u0448\u0435\u0433\u043e \u0441\u0435\u043a\u0440\u0435\u0442\u043d\u043e\u0433\u043e \u0438\u0441\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u043d\u0438\u044f. \u041d\u0435 \u0431\u0443\u0434\u0435\u043c \u043e\u0446\u0435\u043d\u0438\u0432\u0430\u0442\u044c \u0436\u0438\u0442\u0435\u0439\u0441\u043a\u0443\u044e \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0438 \u0441\u0442\u0435\u043f\u0435\u043d\u044c \u0438\u0434\u0438\u043e\u0442\u0438\u0437\u043c\u0430 \u0437\u0430\u0434\u0430\u0447\u0438, \u0430 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0435\u0451 \u0441 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u0442\u043e\u0447\u043a\u0438 \u0437\u0440\u0435\u043d\u0438\u044f:<\/p>\n<p>  \u0412 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 \u043c\u043e\u0434\u0435\u0440\u0430\u0446\u0438\u0438 \u043d\u0435\u0442 \u043f\u0440\u044f\u043c\u044b\u0445 \u0441\u0441\u044b\u043b\u043e\u043a \u043d\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u0443\u044e \u0446\u0438\u0442\u0430\u0442\u0443, \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u043e\u0441\u043e\u0431 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u0446\u0438\u0442\u0430\u0442\u0443 \u2013 \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 (\u0438\u043b\u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u201c\u0435\u0449\u0435\u201d, \u0447\u0442\u043e \u043e\u0434\u043d\u043e \u0438 \u0442\u043e\u0436\u0435). \u041f\u0440\u0438\u0447\u0435\u043c \u0432\u043f\u043e\u043b\u043d\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u043f\u043e\u0432\u0442\u043e\u0440\u044b, \u0447\u0442\u043e \u043b\u0435\u0433\u043a\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u043f\u0430\u0440\u044b \u043c\u0438\u043d\u0443\u0442 \u0430\u0433\u0440\u0435\u0441\u0441\u0438\u0432\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u043a\u0438\u043d\u0433\u0430.<\/p>\n<p>  \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043d\u0443\u0436\u043d\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f:<\/p>\n<ul>\n<li>\u0414\u043e\u043b\u0436\u043d\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c \u0438 \u043f\u0430\u0440\u0441\u0438\u0442\u044c (\u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c) \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044f \u0446\u0438\u0442\u0430\u0442\u0443.<\/li>\n<li>\u0414\u043e\u043b\u0436\u043d\u0430 \u0443\u043c\u0435\u0442\u044c \u043e\u0442\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0442\u044c \u0434\u0443\u0431\u043b\u0438\u043a\u0430\u0442\u044b.<\/li>\n<\/ul>\n<p>  \u041b\u043e\u0433\u0438\u0447\u043d\u043e, \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043d\u044f\u0442\u0438\u044f \u043d\u0435 \u0438\u043c\u0435\u0435\u043c \u0432\u0441\u0435 \u043b\u0438 \u0446\u0438\u0442\u0430\u0442\u044b \u0437\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u044b, \u043d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043a\u043e\u0441\u0432\u0435\u043d\u043d\u043e \u0434\u043e\u0433\u0430\u0434\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u0431\u043e\u043b\u044c\u0448\u043e\u043c\u0443 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u0443 \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0445 \u0446\u0438\u0442\u0430\u0442 \u043f\u043e\u0434\u0440\u044f\u0434. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u043c:<\/p>\n<ul>\n<li>\u0414\u043e\u043b\u0436\u043d\u0430 \u043e\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u043a\u043e\u043c\u0430\u043d\u0434\u0435, \u043d\u043e \u0438 \u043f\u043e \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u044e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u201c\u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432\u201d, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 500!<\/li>\n<li>\u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0437\u0430\u0439\u043c\u0435\u0442 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f: \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0443\u043c\u0435\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u201c\u0441 \u043c\u0435\u0441\u0442\u0430 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438\u0441\u044c\u201d \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f.<\/li>\n<li>\u041d\u0443 \u0438 \u0440\u0430\u0437 \u0443\u0436 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438 \u044d\u0442\u043e \u043d\u0430\u0434\u043e\u043b\u0433\u043e \u2013 \u043f\u0443\u0441\u0442\u044c \u0434\u0435\u043b\u0430\u0435\u0442 \u0441\u0432\u043e\u0435 \u0433\u0440\u044f\u0437\u043d\u043e\u0435 \u0434\u0435\u043b\u043e \u0432 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432. \u0425\u043e\u0440\u043e\u0448\u043e-\u0431\u044b \u0432 \u0446\u0435\u043b\u044b\u0445 4 \u043f\u043e\u0442\u043e\u043a\u0430 (\u0438\u043b\u0438 \u0434\u0430\u0436\u0435 5!).<\/li>\n<li>\u0418 \u043e\u0442\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0431 \u0443\u0441\u043f\u0435\u0445\u0430\u0445 \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u044c \u043a\u0430\u0436\u0434\u044b\u0435, \u0441\u043a\u0430\u0436\u0435\u043c, 10 \u0441\u0435\u043a\u0443\u043d\u0434.<\/li>\n<li>\u0410 \u0432\u0441\u0435 \u044d\u0442\u0438 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u0443\u0441\u043a\u0430\u0439 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u0442 \u0438\u0437 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u043e\u0432 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438!<\/li>\n<\/ul>\n<p>  \u041d\u0443, \u0432\u0440\u043e\u0434\u0435 \u0432\u0441\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u043e. \u041f\u0443\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0432\u0435\u0434\u0435\u0442 \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u2013 \u0441 \u0446\u0438\u0442\u0430\u0442\u0430\u043c\u0438 \u0438 \u0441 \u043d\u0435\u043a\u0438\u043c\u0438 \u0445\u0435\u0448\u0430\u043c\u0438 \u044d\u0442\u0438\u0445 \u0446\u0438\u0442\u0430\u0442, \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u044f\u0442\u044c\u0441\u044f, \u0438 \u043f\u0435\u0440\u0435\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0444\u0430\u0439\u043b \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430. \u041d\u0443 \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u0432 \u0446\u0438\u043a\u043b\u0435 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0432\u044b\u0434\u0435\u0440\u0433\u0438\u0432\u0430\u044f \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u0438 \u043d\u043e\u0432\u044b\u0435 \u043e\u0442\u043a\u0440\u043e\u0432\u0435\u043d\u0438\u044f, \u043f\u043e\u043a\u0430 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0438\u0442 ctrl-c \u043f\u043e \u043b\u0431\u0443 \u0438\u043b\u0438 \u0436\u0435 \u043d\u0435 \u0432\u0441\u0442\u0440\u0435\u0442\u0438\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043e\u0432. \u0417\u0430\u0434\u0430\u0447\u0430 \u044f\u0441\u043d\u0430, \u043f\u043b\u0430\u043d \u0435\u0441\u0442\u044c \u2013 \u043f\u043e\u0435\u0445\u0430\u043b\u0438!  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-197598","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=197598"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/197598\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=197598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=197598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=197598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}