{"id":287369,"date":"2018-08-16T14:07:46","date_gmt":"2018-08-16T10:07:46","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=287369"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=287369","title":{"rendered":"GUI \u043d\u0430 Golang: GTK+ 3"},"content":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420035\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u0420\u0435\u0448\u0438\u043b \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 <strong>Go<\/strong>. \u0421\u0434\u0435\u043b\u0430\u043b <strong>CLI<\/strong>-\u0432\u0435\u0440\u0441\u0438\u044e, \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u0414\u0430 \u0435\u0449\u0451 \u0438 \u043a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0432 <strong>Go<\/strong> \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0412\u0441\u0451 \u0432 \u043e\u0431\u0449\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u041d\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0436\u0435 \u0438 <strong>GUI<\/strong>-\u0432\u0435\u0440\u0441\u0438\u044f. \u0418 \u0442\u0443\u0442 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c&#8230;<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d65\/fcb\/aa2\/d65fcbaa253cd40be0b284cb981583b8.png\" alt=\"Golang gotk3\"><\/p>\n<p><a name=\"habracut\"><\/a>  <\/p>\n<h2 id=\"vybor-biblioteki-bindinga-dlya-gui\">\u0412\u044b\u0431\u043e\u0440 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 (\u0431\u0438\u043d\u0434\u0438\u043d\u0433\u0430) \u0434\u043b\u044f GUI<\/h2>\n<p>  <\/p>\n<p>\u041f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b\u0442\u044c \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u044b\u043c.<br \/>  \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u043e\u043b\u0436\u043d\u043e \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u043e\u0434 <strong>Windows<\/strong>, <strong>GNU\/Linux<\/strong> \u0438 <strong>macOS<\/strong>.<br \/>  \u0412\u044b\u0431\u043e\u0440 \u043f\u0430\u043b \u043d\u0430 \u0442\u0430\u043a\u0438\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438:<\/p>\n<p>  <\/p>\n<ul>\n<li><a href=\"https:\/\/github.com\/gotk3\/gotk3\">gotk3<\/a> (GTK+ 3)<\/li>\n<li><a href=\"https:\/\/github.com\/therecipe\/qt\">therecipe\/qt<\/a> (Qt)<\/li>\n<li><a href=\"https:\/\/github.com\/zserge\/webview\">zserge\/webview<\/a> (\u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0432\u0435\u0431\u0432\u044c\u044e)<\/li>\n<\/ul>\n<p>  <\/p>\n<p><strong>Electron<\/strong> \u0438 \u043f\u0440\u043e\u0447\u0438\u0435 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u044f\u043d\u0443\u0442 \u0441 \u0441\u043e\u0431\u043e\u0439 <strong>Chromium<\/strong> \u0438 <strong>node.js<\/strong>, \u044f \u043e\u0442\u043a\u0438\u043d\u0443\u043b \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u0438 \u0432\u0435\u0441\u044f\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043c\u043d\u043e\u0433\u043e, \u0435\u0449\u0451 \u0438 \u0441\u044a\u0435\u0434\u0430\u044e\u0442 \u043c\u043d\u043e\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e \u043a\u0430\u0436\u0434\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"gotk3\">gotk3<\/h3>\n<p>  <\/p>\n<p>\u0411\u0438\u043d\u0434\u0438\u043d\u0433 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <strong>GTK+ 3<\/strong>. \u041f\u043e\u043a\u0440\u044b\u0442\u0438\u0435 \u0434\u0430\u043b\u0435\u043a\u043e \u043d\u0435 \u0432\u0441\u0435\u0445 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0435\u0439, \u043d\u043e \u0432\u0441\u0451 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0432\u0443\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u043e\u0433\u043e <code>go build<\/code>. <a href=\"https:\/\/github.com\/gotk3\/gotk3\/wiki\/Cross-Compiling\">\u041a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u0430\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f<\/a> \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430, \u0437\u0430 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c <strong>macOS<\/strong>. \u0422\u043e\u043b\u044c\u043a\u043e \u0441 <strong>macOS<\/strong> \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434 \u044d\u0442\u0443 \u041e\u0421, \u043d\u0443 \u0438 \u0441 <strong>macOS<\/strong> \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u0434 <strong>Windows<\/strong> + <strong>GNU\/Linux<\/strong>.<\/p>\n<p>  <\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u0434\u043b\u044f <strong>GNU\/Linux<\/strong>, <strong>Windows<\/strong> (\u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u0442\u0435\u043c\u0443). \u0414\u043b\u044f <strong>macOS<\/strong> \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0435 \u043d\u0430\u0442\u0438\u0432\u043d\u043e. \u0412\u044b\u043a\u0440\u0443\u0442\u0438\u0442\u044c\u0441\u044f \u043c\u043e\u0436\u043d\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437\u0432\u0435 \u0447\u0442\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u0435\u043d\u044c\u043a\u043e\u0439 \u0442\u0435\u043c\u043e\u0439, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u0443\u0434\u0435\u0442 \u044d\u043c\u0443\u043b\u0438\u0440\u0443\u0432\u0430\u0442\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b <strong>macOS<\/strong>.<\/p>\n<p>  <\/p>\n<h3 id=\"therecipeqt\">therecipe\/qt<\/h3>\n<p>  <\/p>\n<p>\u0411\u0438\u043d\u0434\u0438\u043d\u0433 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 <strong>Qt 5<\/strong>. \u041f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0430 QML, \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u0432\u0438\u0434\u0436\u0435\u0442\u043e\u0432. \u0412\u043e\u043e\u0431\u0449\u0435 \u044d\u0442\u043e\u0442 \u0431\u0438\u043d\u0434\u0438\u043d\u0433 \u043c\u043d\u043e\u0433\u0438\u0435 \u0441\u043e\u0432\u0435\u0442\u0443\u044e\u0442.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>qtdeploy<\/code>. \u041a\u0440\u043e\u043c\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0445 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c \u0435\u0441\u0442\u044c \u0442\u0430\u043a\u0436\u0435 \u0438 \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u0435. \u041a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/therecipe\/qt\/wiki\/Deploying-Linux-to-Windows-64-bit-Static#using-docker-image\">Docker<\/a>. \u041f\u043e\u0434 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b <strong>Apple<\/strong> \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0441 <a href=\"https:\/\/github.com\/therecipe\/qt#deployment-targets\">macOS<\/a>.<\/p>\n<p>  <\/p>\n<p>\u041f\u0440\u0438 \u0436\u0435\u043b\u0430\u043d\u0438\u0438 \u043d\u0430 <strong>Qt<\/strong> \u043c\u043e\u0436\u043d\u043e \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e\u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u043b \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u044b\u0445 \u041e\u0421.<\/p>\n<p>  <\/p>\n<h3 id=\"zsergewebview\">zserge\/webview<\/h3>\n<p>  <\/p>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0430 \u0438\u0437\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0430 <strong>C<\/strong>, \u0430\u0432\u0442\u043e\u0440 \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u043b \u0435\u0451 \u043a\u043e \u043c\u043d\u043e\u0433\u0438\u043c \u044f\u0437\u044b\u043a\u0430\u043c, \u0432 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0438 \u043a <strong>Go<\/strong>. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 <a href=\"https:\/\/github.com\/zserge\/webview#webview\">webview<\/a> \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f: <strong>Windows<\/strong> \u2014 <strong>MSHTML<\/strong>, <strong>GNU\/Linux<\/strong> \u2014 <strong>gtk-webkit2<\/strong>, <strong>macOS<\/strong> \u2014 <strong>Cocoa\/WebKit<\/strong>. \u041a\u0440\u043e\u043c\u0435 \u043a\u043e\u0434\u0430 \u043d\u0430 <strong>Go<\/strong> \u043d\u0443\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0438 \u043d\u0430 <strong>JS<\/strong> \u043f\u043e\u043f\u0438\u0441\u0430\u0442\u044c, \u043d\u0443 \u0438 <strong>HTML<\/strong> \u043f\u0440\u0438\u0433\u043e\u0434\u0438\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u041a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 <code>go build<\/code>, \u043a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e <a href=\"https:\/\/github.com\/karalabe\/xgo\">xgo<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0412\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043d\u0430\u0442\u0438\u0432\u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0441\u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u0442 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0431\u0440\u0430\u0443\u0437\u0435\u0440.<\/p>\n<p>  <\/p>\n<h3 id=\"vybor\">\u0412\u044b\u0431\u043e\u0440<\/h3>\n<p>  <\/p>\n<p>\u041f\u043e\u0447\u0435\u043c\u0443 \u0436\u0435 \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u0438\u043c\u0435\u043d\u043d\u043e <strong>gotk3<\/strong>?<\/p>\n<p>  <\/p>\n<p>\u0412 <strong>therecipe\/qt<\/strong> \u043c\u043d\u0435 \u043d\u0435 \u043f\u043e\u043d\u0440\u0430\u0432\u0438\u043b\u0430\u0441\u044c \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0441\u043b\u043e\u0436\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0441\u0431\u043e\u0440\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0434\u0430\u0436\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u0443\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0441\u0434\u0435\u043b\u0430\u043b\u0438.<\/p>\n<p>  <\/p>\n<p><strong>zserge\/webview<\/strong> \u0432\u0440\u043e\u0434\u0435 \u0431\u044b \u043d\u0435 \u043f\u043b\u043e\u0445, \u0432\u0435\u0441\u0438\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u043c\u043d\u043e\u0433\u043e, \u043d\u043e \u0432\u0441\u0451-\u0442\u0430\u043a\u0438 \u044d\u0442\u043e <strong>webview<\/strong> \u0438 \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u0432\u0430\u044e\u0442 \u0432 \u0442\u0430\u043a\u0438\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445: \u043c\u043e\u0436\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0433\u0434\u0435-\u0442\u043e \u043f\u043e\u0435\u0445\u0430\u0442\u044c. \u0418 \u044d\u0442\u043e \u043d\u0435 <strong>Electron<\/strong>, \u0433\u0434\u0435 \u0432\u0441\u0435\u0433\u0434\u0430 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u043f\u0440\u043e\u0434\u0432\u0438\u043d\u0443\u0442\u044b\u0439 <strong>Chromium<\/strong>, \u0430 \u0432 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0441\u0442\u0430\u0440\u043e\u0439 <strong>Windows<\/strong> \u043c\u043e\u0436\u0435\u0442 \u0432\u0441\u0451 \u043f\u043e\u0435\u0445\u0430\u0442\u044c. \u0414\u0430 \u0438 \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u0440\u0438\u0434\u0451\u0442\u0441\u044f \u0435\u0449\u0451 \u0438 \u043d\u0430 <strong>JS<\/strong> \u043f\u0438\u0441\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<p><strong>gotk3<\/strong> \u044f \u0432\u044b\u0431\u0440\u0430\u043b \u043a\u0430\u043a \u0447\u0442\u043e-\u0442\u043e \u0441\u0440\u0435\u0434\u043d\u0435\u0435. \u041c\u043e\u0436\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u043c <code>go build<\/code>, \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u0435\u043c\u043b\u0435\u043c\u043e, \u0434\u0430 \u0438 \u0432\u043e\u043e\u0431\u0449\u0435 \u044f <strong>GTK+ 3<\/strong> \u043b\u044e\u0431\u043b\u044e!<\/p>\n<p>  <\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u044f \u0434\u0443\u043c\u0430\u043b, \u0447\u0442\u043e \u0432\u0441\u0451 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e. \u0418 \u0447\u0442\u043e \u0437\u0440\u044f \u043f\u0440\u043e <strong>Go<\/strong> \u0433\u043e\u0432\u043e\u0440\u044f\u0442, \u0447\u0442\u043e \u0432 \u043d\u0451\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0441 <strong>GUI<\/strong>. \u041d\u043e \u043a\u0430\u043a \u0436\u0435 \u044f \u043e\u0448\u0438\u0431\u0430\u043b\u0441\u044f&#8230;<\/p>\n<p>  <\/p>\n<h2 id=\"nachinaem\">\u041d\u0430\u0447\u0438\u043d\u0430\u0435\u043c<\/h2>\n<p>  <\/p>\n<p>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0432\u0441\u0451 \u0438\u0437 <strong>gotk3<\/strong> (<strong>gtk<\/strong>, <strong>gdk<\/strong>, <strong>glib<\/strong>, <strong>cairo<\/strong>) \u0441\u0435\u0431\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">go get github.com\/gotk3\/gotk3\/...<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0430\u043a\u0436\u0435 \u0443 \u0432\u0430\u0441 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u0441\u0430\u043c\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <strong>GTK+ 3<\/strong> \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438.<\/p>\n<p>  <\/p>\n<h3 id=\"gnulinux\">GNU\/Linux<\/h3>\n<p>  <\/p>\n<p>\u0412 <strong>Ubuntu<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install libgtk-3-dev<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 <strong>Arch Linux<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo pacman -S gtk3<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"macos\">macOS<\/h3>\n<p>  <\/p>\n<p>\u0427\u0435\u0440\u0435\u0437 <strong>Homebrew<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\"> brew install gtk-mac-integration gtk+3<\/code><\/pre>\n<p>  <\/p>\n<h3 id=\"windows\">Windows<\/h3>\n<p>  <\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u0432\u0441\u0451 \u043d\u0435 \u0442\u0430\u043a \u043f\u0440\u043e\u0441\u0442\u043e. \u0412 <a href=\"https:\/\/www.gtk.org\/download\/windows.php\">\u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438<\/a> \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <strong>MSYS2<\/strong> \u0438 \u0443\u0436\u0435 \u0432 \u043d\u0435\u0439 \u0432\u0441\u0451 \u0434\u0435\u043b\u0430\u0442\u044c. \u041b\u0438\u0447\u043d\u043e \u044f \u043f\u0438\u0441\u0430\u043b \u043a\u043e\u0434 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445, \u0430 \u043a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e \u0434\u043b\u044f <strong>Windows<\/strong> \u0434\u0435\u043b\u0430\u043b \u0432 <strong>Arch Linux<\/strong>, \u043e \u0447\u0451\u043c \u043d\u0430\u0434\u0435\u044e\u0441\u044c \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u043f\u0438\u0448\u0443.<\/p>\n<p>  <\/p>\n<h2 id=\"prostoy-primer\">\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440<\/h2>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0438\u0448\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0444\u0430\u0439\u043b \u0441 \u043a\u043e\u0434\u043e\u043c <code>main.go<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">package main  import (     \"log\"      \"github.com\/gotk3\/gotk3\/gtk\" )  func main() {     \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c GTK.     gtk.Init(nil)      \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043e\u043a\u043d\u043e \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a     \/\/ \u0418 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u043c \"destroy\" \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c     \/\/ \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 \u043e\u043a\u043d\u0430     win, err := gtk.WindowNew(gtk.WINDOW_TOPLEVEL)     if err != nil {         log.Fatal(\"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043e\u043a\u043d\u043e:\", err)     }     win.SetTitle(\"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440\")     win.Connect(\"destroy\", func() {         gtk.MainQuit()     })      \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u043d\u043e\u0432\u0443\u044e \u043c\u0435\u0442\u043a\u0443 \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0435\u0451 \u0432 \u043e\u043a\u043d\u0435     l, err := gtk.LabelNew(\"\u041f\u0440\u0438\u0432\u0435\u0442, gotk3!\")     if err != nil {         log.Fatal(\"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043c\u0435\u0442\u043a\u0443:\", err)     }      \/\/ \u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043c\u0435\u0442\u043a\u0443 \u0432 \u043e\u043a\u043d\u043e     win.Add(l)      \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0440\u0430\u0437\u043c\u0435\u0440 \u043e\u043a\u043d\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e     win.SetDefaultSize(800, 600)      \/\/ \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0432 \u043e\u043a\u043d\u0435     win.ShowAll()      \/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0446\u0438\u043a\u043b GTK (\u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438). \u041e\u043d \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430     \/\/ \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f gtk.MainQuit()     gtk.Main() }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043f\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u043c\u0430\u043d\u0434\u044b <code>go build<\/code>, \u0430 \u043f\u043e\u0442\u043e\u043c \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0431\u0438\u043d\u0430\u0440\u043d\u0438\u043a. \u041d\u043e \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u043c \u0435\u0433\u043e:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">go run main.go<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043e\u043a\u043d\u043e \u0442\u0430\u043a\u043e\u0433\u043e \u0432\u0438\u0434\u0430:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/ac1\/51b\/08d\/ac151b08d097cae4a4efe66ed1c8e5fe.png\" alt=\"\u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430 Golang gotk3\"><\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e! \u0423 \u0432\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0438\u0437 <a href=\"https:\/\/github.com\/gotk3\/gotk3#sample-use\">README<\/a> <strong>gotk3<\/strong>!<\/p>\n<p>  <\/p>\n<p>\u0411\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0439\u0442\u0438 \u043d\u0430 <a href=\"https:\/\/github.com\/gotk3\/gotk3-examples\/\">Github gotk3<\/a>. \u0418\u0445 \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u044f \u043d\u0435 \u0431\u0443\u0434\u0443. \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u0439\u043c\u0451\u043c\u0441\u044f \u0442\u0435\u043c, \u0447\u0435\u0433\u043e \u043d\u0435\u0442 \u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445!<\/p>\n<p>  <\/p>\n<h2 id=\"glade\">Glade<\/h2>\n<p>  <\/p>\n<p>\u0415\u0441\u0442\u044c \u0442\u0430\u043a\u0430\u044f \u0432\u0435\u0449\u044c \u0434\u043b\u044f <strong>Gtk+ 3<\/strong> \u2014 <strong>Glade<\/strong>. \u042d\u0442\u043e \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0442\u043e\u0440 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u0432 \u0434\u043b\u044f <strong>GTK+<\/strong>. \u0412\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e3f\/e8c\/e6e\/e3fe8ce6ec01d775289167d2a83de4af.png\" alt=\"Glade\"><\/p>\n<p>  <\/p>\n<p>\u0427\u0442\u043e\u0431\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043d\u0435 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043a\u0430\u0436\u0434\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u0442\u044c \u0435\u0433\u043e \u043f\u043e\u0442\u043e\u043c \u0433\u0434\u0435-\u0442\u043e \u0432 \u043e\u043a\u043d\u0435 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430, \u043c\u043e\u0436\u043d\u043e \u0432\u0435\u0441\u044c \u0434\u0438\u0437\u0430\u0439\u043d \u043d\u0430\u043a\u0438\u0434\u0430\u0442\u044c \u0432 <strong>Glade<\/strong>. \u041f\u043e\u0442\u043e\u043c \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0432\u0441\u0451 \u0432 <strong>XML-\u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0439<\/strong> \u0444\u0430\u0439\u043b <strong>*.glade<\/strong> \u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u0435\u0433\u043e \u0443\u0436\u0435 \u0447\u0435\u0440\u0435\u0437 \u043d\u0430\u0448\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435.<\/p>\n<p>  <\/p>\n<h3 id=\"ustanovka-glade\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Glade<\/h3>\n<p>  <\/p>\n<h4 id=\"gnulinux-1\">GNU\/Linux<\/h4>\n<p>  <\/p>\n<p>\u0412 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 <strong>GNU\/Linux<\/strong> \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c <strong>glade<\/strong> \u043d\u0435 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u0442\u0440\u0443\u0434\u0430. \u0412 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c <strong>Ubuntu<\/strong> \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo apt-get install glade<\/code><\/pre>\n<p>  <\/p>\n<p>\u0412 <strong>Arch Linux<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">sudo pacman -S glade<\/code><\/pre>\n<p>  <\/p>\n<h4 id=\"macos-1\">macOS<\/h4>\n<p>  <\/p>\n<p>\u0412 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430\u0445 \u0441 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0430\u0439\u0442\u0430 \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0430\u0440\u0430\u044f \u0441\u0431\u043e\u0440\u043a\u0430. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u043b\u0443\u0447\u0448\u0435 \u0447\u0435\u0440\u0435\u0437 <strong>Homebrew<\/strong>:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">brew install glade<\/code><\/pre>\n<p>  <\/p>\n<p>\u0410 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">glade<\/code><\/pre>\n<p>  <\/p>\n<h4 id=\"windows-1\">Windows<\/h4>\n<p>  <\/p>\n<p>\u0421\u043a\u0430\u0447\u0430\u0442\u044c \u043d\u0435 \u0441\u0430\u043c\u0443\u044e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0436\u043d\u043e <a href=\"http:\/\/ftp.gnome.org\/pub\/GNOME\/binaries\/win32\/glade\/\">\u0437\u0434\u0435\u0441\u044c<\/a>. \u042f \u043b\u0438\u0447\u043d\u043e \u043d\u0430 <strong>Windows<\/strong> \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0435 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0435 \u0437\u043d\u0430\u044e \u043d\u0430\u0441\u0447\u0451\u0442 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0442\u0430\u043c <strong>Glade<\/strong>.<\/p>\n<p>  <\/p>\n<h3 id=\"prostoe-prilozhenie-s-ispolzovaniem-glade\">\u041f\u0440\u043e\u0441\u0442\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Glade<\/h3>\n<p>  <\/p>\n<p>\u0412 \u043e\u0431\u0449\u0435\u043c \u043d\u0430\u0434\u0438\u0437\u0430\u0439\u043d\u0438\u043b \u044f \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0435 \u043e\u043a\u043d\u043e:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/12b\/b67\/1e5\/12bb671e5c1f7da16c2d41e7bb6410b3.png\" alt=\"Glade\"><\/p>\n<p>  <\/p>\n<p>\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u043b \u0438 \u043f\u043e\u043b\u0443\u0447\u0438\u043b \u0444\u0430\u0439\u043b <code>main.glade<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"xml\">&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt; &lt;!-- Generated with glade 3.22.1 --&gt; &lt;interface&gt;   &lt;requires lib=\"gtk+\" version=\"3.20\"\/&gt;   &lt;object class=\"GtkWindow\" id=\"window_main\"&gt;     &lt;property name=\"title\" translatable=\"yes\"&gt;\u041f\u0440\u0438\u043c\u0435\u0440 Glade&lt;\/property&gt;     &lt;property name=\"can_focus\"&gt;False&lt;\/property&gt;     &lt;child&gt;       &lt;placeholder\/&gt;     &lt;\/child&gt;     &lt;child&gt;       &lt;object class=\"GtkBox\"&gt;         &lt;property name=\"visible\"&gt;True&lt;\/property&gt;         &lt;property name=\"can_focus\"&gt;False&lt;\/property&gt;         &lt;property name=\"margin_left\"&gt;10&lt;\/property&gt;         &lt;property name=\"margin_right\"&gt;10&lt;\/property&gt;         &lt;property name=\"margin_top\"&gt;10&lt;\/property&gt;         &lt;property name=\"margin_bottom\"&gt;10&lt;\/property&gt;         &lt;property name=\"orientation\"&gt;vertical&lt;\/property&gt;         &lt;property name=\"spacing\"&gt;10&lt;\/property&gt;         &lt;child&gt;           &lt;object class=\"GtkEntry\" id=\"entry_1\"&gt;             &lt;property name=\"visible\"&gt;True&lt;\/property&gt;             &lt;property name=\"can_focus\"&gt;True&lt;\/property&gt;           &lt;\/object&gt;           &lt;packing&gt;             &lt;property name=\"expand\"&gt;False&lt;\/property&gt;             &lt;property name=\"fill\"&gt;True&lt;\/property&gt;             &lt;property name=\"position\"&gt;0&lt;\/property&gt;           &lt;\/packing&gt;         &lt;\/child&gt;         &lt;child&gt;           &lt;object class=\"GtkButton\" id=\"button_1\"&gt;             &lt;property name=\"label\" translatable=\"yes\"&gt;Go&lt;\/property&gt;             &lt;property name=\"visible\"&gt;True&lt;\/property&gt;             &lt;property name=\"can_focus\"&gt;True&lt;\/property&gt;             &lt;property name=\"receives_default\"&gt;True&lt;\/property&gt;           &lt;\/object&gt;           &lt;packing&gt;             &lt;property name=\"expand\"&gt;False&lt;\/property&gt;             &lt;property name=\"fill\"&gt;True&lt;\/property&gt;             &lt;property name=\"position\"&gt;1&lt;\/property&gt;           &lt;\/packing&gt;         &lt;\/child&gt;         &lt;child&gt;           &lt;object class=\"GtkLabel\" id=\"label_1\"&gt;             &lt;property name=\"visible\"&gt;True&lt;\/property&gt;             &lt;property name=\"can_focus\"&gt;False&lt;\/property&gt;             &lt;property name=\"label\" translatable=\"yes\"&gt;This is label&lt;\/property&gt;           &lt;\/object&gt;           &lt;packing&gt;             &lt;property name=\"expand\"&gt;False&lt;\/property&gt;             &lt;property name=\"fill\"&gt;True&lt;\/property&gt;             &lt;property name=\"position\"&gt;2&lt;\/property&gt;           &lt;\/packing&gt;         &lt;\/child&gt;       &lt;\/object&gt;     &lt;\/child&gt;   &lt;\/object&gt; &lt;\/interface&gt;<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u043e \u0435\u0441\u0442\u044c \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c \u043e\u043a\u043d\u043e <code>window_main<\/code> (<code>GtkWindow<\/code>), \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0432\u043d\u0443\u0442\u0440\u0438 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 (<code>GtkBox<\/code>), \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043f\u043e\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 <code>entry_1<\/code> (<code>GtkEntry<\/code>), \u043a\u043d\u043e\u043f\u043a\u0443 <code>button_1<\/code> (<code>GtkButton<\/code>) \u0438 \u043c\u0435\u0442\u043a\u0443 <code>label_1<\/code> (<code>GtkLabel<\/code>). \u041a\u0440\u043e\u043c\u0435 \u044d\u0442\u043e\u0433\u043e \u0435\u0449\u0451 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u044b \u043e\u0442\u0441\u0443\u043f\u043e\u0432 (\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b \u043d\u0435\u043c\u043d\u043e\u0433\u043e), \u0432\u0438\u0434\u0438\u043c\u043e\u0441\u0442\u044c \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0430\u0442\u0442\u0440\u0438\u0431\u0443\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 <strong>Glade<\/strong> \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043f\u0440\u043e\u0431\u0443\u0435\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u044d\u0442\u043e \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0432 \u043d\u0430\u0448\u0435\u043c <code>main.go<\/code>:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">package main  import (     \"log\"      \"github.com\/gotk3\/gotk3\/gtk\" )  func main() {     \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c GTK.     gtk.Init(nil)      \/\/ \u0421\u043e\u0437\u0434\u0430\u0451\u043c \u0431\u0438\u043b\u0434\u0435\u0440     b, err := gtk.BuilderNew()     if err != nil {         log.Fatal(\"\u041e\u0448\u0438\u0431\u043a\u0430:\", err)     }      \/\/ \u0417\u0430\u0433\u0440\u0443\u0436\u0430\u0435\u043c \u0432 \u0431\u0438\u043b\u0434\u0435\u0440 \u043e\u043a\u043d\u043e \u0438\u0437 \u0444\u0430\u0439\u043b\u0430 Glade     err = b.AddFromFile(\"main.glade\")     if err != nil {         log.Fatal(\"\u041e\u0448\u0438\u0431\u043a\u0430:\", err)     }      \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043e\u0431\u044a\u0435\u043a\u0442 \u0433\u043b\u0430\u0432\u043d\u043e\u0433\u043e \u043e\u043a\u043d\u0430 \u043f\u043e ID     obj, err := b.GetObject(\"window_main\")     if err != nil {         log.Fatal(\"\u041e\u0448\u0438\u0431\u043a\u0430:\", err)     }      \/\/ \u041f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u0443\u0435\u043c \u0438\u0437 \u043e\u0431\u044a\u0435\u043a\u0442\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043e\u043a\u043d\u043e \u0442\u0438\u043f\u0430 gtk.Window     \/\/ \u0438 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u043c \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u043c \"destroy\" \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0437\u0430\u043a\u0440\u044b\u0442\u044c     \/\/ \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0438 \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u0438 \u043e\u043a\u043d\u0430     win := obj.(*gtk.Window)     win.Connect(\"destroy\", func() {         gtk.MainQuit()     })      \/\/ \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c \u0432\u0441\u0435 \u0432\u0438\u0434\u0436\u0435\u0442\u044b \u0432 \u043e\u043a\u043d\u0435     win.ShowAll()      \/\/ \u0412\u044b\u043f\u043e\u043b\u043d\u044f\u0435\u043c \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0446\u0438\u043a\u043b GTK (\u0434\u043b\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0438). \u041e\u043d \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u043a\u043e\u0433\u0434\u0430     \/\/ \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f gtk.MainQuit()     gtk.Main() }<\/code><\/pre>\n<p>  <\/p>\n<p>\u0421\u043d\u043e\u0432\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">go run main.go<\/code><\/pre>\n<p>  <\/p>\n<p>\u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/e60\/169\/9db\/e601699db82a137782181d0a00913cce.png\" alt=\"Golang Glade gotk3\"><\/p>\n<p>  <\/p>\n<p>\u0423\u0440\u0430! \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u044b \u0434\u0435\u0440\u0436\u0438\u043c <strong>XML<\/strong>-\u043f\u043e\u0434\u043e\u0431\u043d\u043e\u043c <code>main.glade<\/code> \u0444\u0430\u0439\u043b\u0435, \u0430 \u043a\u043e\u0434 \u0432 <code>main.go<\/code>!<\/p>\n<p>  <\/p>\n<h2 id=\"signaly\">\u0421\u0438\u0433\u043d\u0430\u043b\u044b<\/h2>\n<p>  <\/p>\n<p>\u041e\u043a\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438. \u041f\u0443\u0441\u0442\u044c \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043f\u0440\u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u0438 \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u043f\u043e\u043f\u0430\u0434\u0451\u0442 \u0432 \u043c\u0435\u0442\u043a\u0443.<\/p>\n<p>  <\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0434\u043b\u044f \u043d\u0430\u0447\u0430\u043b\u0430 \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430, \u043a\u043d\u043e\u043f\u043a\u0438 \u0438 \u043c\u0435\u0442\u043a\u0435 \u0432 \u043a\u043e\u0434\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">\/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u043e\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 obj, _ = b.GetObject(\"entry_1\") entry1 := obj.(*gtk.Entry)  \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043a\u043d\u043e\u043f\u043a\u0443 obj, _ = b.GetObject(\"button_1\") button1 := obj.(*gtk.Button)  \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043c\u0435\u0442\u043a\u0443 obj, _ = b.GetObject(\"label_1\") label1 := obj.(*gtk.Label)<\/code><\/pre>\n<p>  <\/p>\n<p>\u042f \u043d\u0435 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u044e \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0444\u0443\u043d\u043a\u0446\u0438\u044f <code>GetObject()<\/code>, \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043a\u043e\u0434 \u0431\u044b\u043b \u0431\u043e\u043b\u0435\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u043c. \u041d\u043e \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0440\u0430\u0431\u043e\u0447\u0435\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u0438\u0445 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c.<\/p>\n<p>  <\/p>\n<p>\u0425\u043e\u0440\u043e\u0448\u043e. \u0421 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u043a\u043e\u0434\u0430 \u0432\u044b\u0448\u0435 \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043d\u0430\u0448\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0444\u043e\u0440\u043c\u044b. \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u043c \u0441\u0438\u0433\u043d\u0430\u043b <code>clicked<\/code> \u043a\u043d\u043e\u043f\u043a\u0443 (\u043a\u043e\u0433\u0434\u0430 \u043a\u043d\u043e\u043f\u043a\u0430 \u043d\u0430\u0436\u0430\u0442\u0430). \u0421\u0438\u0433\u043d\u0430\u043b <strong>GTK+<\/strong> \u2014 \u044d\u0442\u043e \u043f\u043e \u0441\u0443\u0442\u0438 \u0440\u0435\u0430\u043a\u0446\u0438\u044f \u043d\u0430 \u0441\u043e\u0431\u044b\u0442\u0438\u0435. \u0414\u043e\u0431\u0430\u0432\u0438\u043c \u043a\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"go\">\/\/ \u0421\u0438\u0433\u043d\u0430\u043b \u043f\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 button1.Connect(\"clicked\", func() {     text, err := entry1.GetText()     if err == nil {         \/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0442\u0435\u043a\u0441\u0442 \u0438\u0437 \u043f\u043e\u043b\u044f \u0432\u0432\u043e\u0434\u0430 \u043c\u0435\u0442\u043a\u0435         label1.SetText(text)     } })<\/code><\/pre>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u043c \u043a\u043e\u0434:<\/p>\n<p>  <\/p>\n<pre><code class=\"bash\">go run main.go<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0432\u0432\u043e\u0434\u0430 \u043a\u0430\u043a\u043e\u0433\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u043f\u043e\u043b\u0435 \u0438 \u043d\u0430\u0436\u0430\u0442\u0438\u044e \u043f\u043e \u043a\u043d\u043e\u043f\u043a\u0435 <strong>Go<\/strong> \u043c\u044b \u0443\u0432\u0438\u0434\u0435\u043c \u044d\u0442\u043e\u0442 \u0442\u0435\u043a\u0441\u0442 \u0432 \u043c\u0435\u0442\u043a\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/832\/a20\/584\/832a20584aec91eee1c1745d87e003b6.png\" alt=\"Golang Glade gotk3 signal\"><\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435!<\/p>\n<p>  <\/p>\n<h2 id=\"zaklyuchenie\">\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u043e\u043c \u044d\u0442\u0430\u043f\u0435 \u0432\u0441\u0451 \u043a\u0430\u0436\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0441\u0442\u044b\u043c \u0438 \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0435\u0439. \u041d\u043e \u0442\u0440\u0443\u0434\u043d\u043e\u0441\u0442\u0438 \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u044f\u0432\u0438\u043b\u0438\u0441\u044c \u043f\u0440\u0438 \u043a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 (\u0432\u0435\u0434\u044c <strong>gotk3<\/strong> \u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0441 <strong>CGO<\/strong>), \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u0438 \u0441 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u043c\u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u043c\u0438 \u0438 \u0441 \u0434\u0438\u0430\u043b\u043e\u0433\u043e\u043c \u0432\u044b\u0431\u043e\u0440\u0430 \u0444\u0430\u0439\u043b\u0430. \u042f \u0434\u0430\u0436\u0435 <a href=\"https:\/\/github.com\/gotk3\/gotk3\/pull\/267\">\u0434\u043e\u0431\u0430\u0432\u0438\u043b<\/a> \u0432 \u043f\u0440\u043e\u0435\u043a\u0442 <strong>gotk<\/strong> \u043d\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0434\u0438\u0430\u043b\u043e\u0433. \u0422\u0430\u043a\u0436\u0435 \u0432 \u043c\u043e\u0451\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u043d\u0443\u0436\u043d\u0430 \u0431\u044b\u043b\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0430\u0446\u0438\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f. \u0422\u0430\u043c \u0442\u043e\u0436\u0435 \u0435\u0441\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438. \u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0441\u0451 \u0441\u0435\u0439\u0447\u0430\u0441 \u0432 \u043a\u043e\u0434\u0435, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/github.com\/jhekasoft\/insteadman3\/tree\/master\/gtk\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0418\u0441\u0445\u043e\u0434\u044b\u0435 \u043a\u043e\u0434\u044b \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u0438\u0437 \u0441\u0442\u0430\u0442\u044c\u0438 \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f <a href=\"https:\/\/github.com\/jhekasoft\/articles\/tree\/master\/01_golang_gtk3\/example\">\u0437\u0434\u0435\u0441\u044c<\/a>.<\/p>\n<p>  <\/p>\n<p>\u0410 \u0435\u0441\u043b\u0438 \u0445\u043e\u0442\u0438\u0442\u0435 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435, \u0442\u043e \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u0442\u044c. \u0418 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043e\u043a\u0430\u0436\u0435\u0442\u0441\u044f \u044d\u0442\u043e \u043a\u043e\u043c\u0443-\u043d\u0438\u0431\u0443\u0434\u044c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c, \u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0443 \u043f\u0438\u0441\u0430\u0442\u044c.<\/p>\n<\/div>\n<p>        <script class=\"js-mediator-script\">!function(e){function t(t,n){if(!(n in e)){for(var r,a=e.document,i=a.scripts,o=i.length;o--;)if(-1!==i[o].src.indexOf(t)){r=i[o];break}if(!r){r=a.createElement(\"script\"),r.type=\"text\/javascript\",r.async=!0,r.defer=!0,r.src=t,r.charset=\"UTF-8\";var d=function(){var e=a.getElementsByTagName(\"script\")[0];e.parentNode.insertBefore(r,e)};\"[object Opera]\"==e.opera?a.addEventListener?a.addEventListener(\"DOMContentLoaded\",d,!1):e.attachEvent(\"onload\",d):d()}}}t(\"\/\/mediator.mail.ru\/script\/2820404\/\",\"_mediator\")}(window);<\/script>     <br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/post\/420035\/\"> https:\/\/habr.com\/post\/420035\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div data-io-article-url=\"https:\/\/habr.com\/post\/420035\/\" class=\"post__text post__text-html js-mediator-article\">\n<p>\u0420\u0435\u0448\u0438\u043b \u044f \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043e\u0434\u043d\u043e \u043a\u0440\u043e\u0441\u0441\u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0435\u043d\u043d\u043e\u0435 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 <strong>Go<\/strong>. \u0421\u0434\u0435\u043b\u0430\u043b <strong>CLI<\/strong>-\u0432\u0435\u0440\u0441\u0438\u044e, \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u0414\u0430 \u0435\u0449\u0451 \u0438 \u043a\u0440\u043e\u0441\u0441\u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044f \u0432 <strong>Go<\/strong> \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f. \u0412\u0441\u0451 \u0432 \u043e\u0431\u0449\u0435\u043c \u043e\u0442\u043b\u0438\u0447\u043d\u043e. \u041d\u043e \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u043b\u0430\u0441\u044c \u0442\u0430\u043a\u0436\u0435 \u0438 <strong>GUI<\/strong>-\u0432\u0435\u0440\u0441\u0438\u044f. \u0418 \u0442\u0443\u0442 \u043d\u0430\u0447\u0430\u043b\u043e\u0441\u044c&#8230;<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/post_images\/d65\/fcb\/aa2\/d65fcbaa253cd40be0b284cb981583b8.png\" alt=\"Golang gotk3\"><\/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-287369","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287369","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=287369"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/287369\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=287369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=287369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=287369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}