{"id":93440,"date":"2026-08-12T16:09:14","date_gmt":"2026-08-12T08:09:14","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/93440.html"},"modified":"2026-08-12T16:09:14","modified_gmt":"2026-08-12T08:09:14","slug":"openeuler-%e8%bf%90%e8%a1%8c-go%e8%af%ad%e8%a8%80-helloworld","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/93440.html","title":{"rendered":"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld"},"content":{"rendered":"<p>openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld<\/p>\n<p>\u9996\u5148\u514b\u9686\u4e0b\u8f7d\u9879\u76ee<br \/>\n\u9879\u76ee\u5730\u5740\u4e3ahttps:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui<br \/>\ngit clone https:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui.git<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080907-6a7c2a2374673.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/>\u5b89\u88c5go\u8bed\u8a00<br \/>\nsudo dnf install go<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080907-6a7c2a23f19c0.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/>cd helloworld-go-gui\/<br \/>\ngo mod init helloworld\u5efa\u7acb\u9879\u76ee\u521d\u59cb\u5316<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080908-6a7c2a2496ac4.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/>\u5bfc\u5165Fyne \u56fe\u5f62\u7528\u6237\u754c\u9762&#xff08;GUI&#xff09;\u5de5\u5177\u5305<br \/>\nexport GOPROXY&#061;https:\/\/goproxy.cn,direct<br \/>\ngo get fyne.io\/fyne\/v2<br \/>\n\u8fd9\u662f\u6211\u4eec\u7684main.go<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080909-6a7c2a25c2d80.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/>package main<\/p>\n<p>import (<br \/>\n\u201cfyne.io\/fyne\/v2\u201d<br \/>\n\u201cfyne.io\/fyne\/v2\/app\u201d<br \/>\n\u201cfyne.io\/fyne\/v2\/widget\u201d<br \/>\n)<\/p>\n<p>func main() {<br \/>\na :&#061; app.New()<br \/>\nw :&#061; a.NewWindow(\u201cGo GUI Hello World\u201d)<br \/>\nw.Resize(fyne.NewSize(300, 200))<br \/>\nw.SetContent(widget.NewLabel(\u201cHello World!\u201d))<br \/>\nw.ShowAndRun()<br \/>\n}<br \/>\n\u4e3b\u8981\u662f\u4e09\u53e5\u3002<br \/>\n\u5bfc\u5165Fyne \u56fe\u5f62\u7528\u6237\u754c\u9762&#xff08;GUI&#xff09;\u5de5\u5177\u5305<br \/>\nimport (\u201cfyne.io\/fyne\/v2\u201d<br \/>\n\u65b0\u5efa\u7a97\u53e3\u3002<br \/>\nw :&#061; a.NewWindow(\u201cGo GUI Hello World\u201d)<br \/>\n\u8f93\u51fahelloworld<br \/>\nw.SetContent(widget.NewLabel(\u201cHello World!\u201d))<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080910-6a7c2a267ce6c.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/>\u7f16\u8bd1\u8fd0\u884c<br \/>\ngo run main.go<br \/>\n\u7ed3\u679c\u51fa\u6765\u4e86\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080911-6a7c2a2726704.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/>\u9644\u5f55&#xff1a;openEuler \u8fd0\u884c rust\u8bed\u8a00 helloworld<\/p>\n<p>\u9996\u5148\u514b\u9686\u4e0b\u8f7d\u9879\u76ee<\/p>\n<p>git clone https:\/\/gitcode.com\/liyuansi2222\/helloworld-rust-gui.git<br \/>\ncd helloworld-rust-gui<br \/>\n\u5b89\u88c5rust cargo<br \/>\nsudo dnf install rust cargo<br \/>\ncargo build<br \/>\ncargo run<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080911-6a7c2a27c550e.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080912-6a7c2a282e9a6.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080912-6a7c2a286b766.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/>main.rs \u5982\u4e0b<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080913-6a7c2a2985890.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld<br \/>\n\u9996\u5148\u514b\u9686\u4e0b\u8f7d\u9879\u76ee<br \/>\n\u9879\u76ee\u5730\u5740\u4e3ahttps:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui<br \/>\ngit clone https:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui.git<br \/>\n\u5b89\u88c5go\u8bed\u8a00<br \/>\nsudo dnf install go<br \/>\ncd helloworld-go-gui\/<br \/>\ngo mod init helloworld\u5efa\u7acb\u9879\u76ee\u521d\u59cb\u5316<br \/>\n\u5bfc\u5165<\/p>\n","protected":false},"author":2,"featured_media":93430,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[746],"topic":[],"class_list":["post-93440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-golang"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/93440.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld \u9996\u5148\u514b\u9686\u4e0b\u8f7d\u9879\u76ee \u9879\u76ee\u5730\u5740\u4e3ahttps:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui git clone https:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui.git \u5b89\u88c5go\u8bed\u8a00 sudo dnf install go cd helloworld-go-gui\/ go mod init helloworld\u5efa\u7acb\u9879\u76ee\u521d\u59cb\u5316 \u5bfc\u5165\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/93440.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-12T08:09:14+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080907-6a7c2a2374673.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93440.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/93440.html\",\"name\":\"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-12T08:09:14+00:00\",\"dateModified\":\"2026-08-12T08:09:14+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/93440.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/93440.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/93440.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/93440.html","og_locale":"zh_CN","og_type":"article","og_title":"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld \u9996\u5148\u514b\u9686\u4e0b\u8f7d\u9879\u76ee \u9879\u76ee\u5730\u5740\u4e3ahttps:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui git clone https:\/\/gitcode.com\/liyuansi2222\/helloworld-go-gui.git \u5b89\u88c5go\u8bed\u8a00 sudo dnf install go cd helloworld-go-gui\/ go mod init helloworld\u5efa\u7acb\u9879\u76ee\u521d\u59cb\u5316 \u5bfc\u5165","og_url":"https:\/\/www.wsisp.com\/helps\/93440.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-12T08:09:14+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260812080907-6a7c2a2374673.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/93440.html","url":"https:\/\/www.wsisp.com\/helps\/93440.html","name":"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-12T08:09:14+00:00","dateModified":"2026-08-12T08:09:14+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/93440.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/93440.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/93440.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"openEuler \u8fd0\u884c go\u8bed\u8a00 helloworld"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/93440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=93440"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/93440\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/93430"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=93440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=93440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=93440"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=93440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}