{"id":93,"date":"2025-08-13T15:05:07","date_gmt":"2025-08-13T13:05:07","guid":{"rendered":"https:\/\/blog.kihr.online\/?p=93"},"modified":"2025-11-19T10:55:26","modified_gmt":"2025-11-19T09:55:26","slug":"install-go-on-windows-in-the-user-space","status":"publish","type":"post","link":"https:\/\/blog.kihr.online\/?p=93","title":{"rendered":"Install GO on Windows in the user space"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Lesedauer<\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">Minute<\/span><\/span>\n<p class=\"wp-block-paragraph\">I had the problem that I had to work with Windows, where I don&#8217;t have admin rights and therefore couldn&#8217;t install anything without admin rights. However, when you download the Windows .msi file from GO, you need it for the installation. So you have to do this with the ZIP file and install GO in the user home directory.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">You can download the ZIP file <a href=\"https:\/\/go.dev\/dl\/\" data-type=\"link\" data-id=\"https:\/\/go.dev\/dl\/\">here<\/a>. Then unzip it in Windows. You need to find a path in your home directory where you want to install it. I found it best to do this where other software is already installed in the home directory. This is: C:\\Users\\&lt;username&gt;\\AppData\\Local\\Programs<br>Copy the go folder from the archive to this location so that you then have C:\\Users\\&lt;username&gt;\\AppData\\Local\\Programs\\go. It is important to copy the entire folder. Now you need to set the path. However, this does not work via the GUI without admin rights, but it does work with Powershell, though. Open Powershell and execute the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$userpath = &#91;System.Environment]::GetEnvironmentVariable(\"PATH\",\"USER\")\n$userpath = $userpath + \";$env:USERPROFILE\\AppData\\Local\\Programs\\go\\bin\"\n&#91;System.Environment]::SetEnvironmentVariable(\"PATH\",$userpath,\"USER\")<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">First, save the existing user path in the variable of the same name. Then add the path to GO at the end. It is important to set the path to the bin folder. The last command then sets the user path in the USER PATH variable.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can check this with after starting a new powershell session:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo $env:path<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The path should now be visible at the end of the path displayed. For this to work in Powershell, you need to open a new Powershell session. Then you can use<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>go version<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> to see if everything is working. <br>Now you can also use GO in Visual Code, for example. Just install the GO extension and it will work without any errors.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\">Lesedauer<\/span> <span class=\"rt-time\"> &lt; 1<\/span> <span class=\"rt-label rt-postfix\">Minute<\/span><\/span>I had the problem that I had to work with Windows, where I don&#8217;t have admin rights and therefore couldn&#8217;t install anything without admin rights. However, when you download the Windows .msi file from GO, you need it for the installation. So you have to do this with the ZIP file and install GO in [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":97,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[50,49],"tags":[48,47],"class_list":["post-93","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-userspace","category-windows","tag-userspace","tag-windows","entry","has-media"],"_links":{"self":[{"href":"https:\/\/blog.kihr.online\/index.php?rest_route=\/wp\/v2\/posts\/93","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.kihr.online\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.kihr.online\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.kihr.online\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.kihr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=93"}],"version-history":[{"count":4,"href":"https:\/\/blog.kihr.online\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":3274,"href":"https:\/\/blog.kihr.online\/index.php?rest_route=\/wp\/v2\/posts\/93\/revisions\/3274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.kihr.online\/index.php?rest_route=\/wp\/v2\/media\/97"}],"wp:attachment":[{"href":"https:\/\/blog.kihr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.kihr.online\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.kihr.online\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}