Skip to content

Instantly share code, notes, and snippets.

@xmlking
Created March 29, 2025 17:54
Show Gist options
  • Save xmlking/f8e19f2d13a6512b512d2a2542cbb6c2 to your computer and use it in GitHub Desktop.
Save xmlking/f8e19f2d13a6512b512d2a2542cbb6c2 to your computer and use it in GitHub Desktop.

Revisions

  1. xmlking created this gist Mar 29, 2025.
    50 changes: 50 additions & 0 deletions windows-golang.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,50 @@
    # windows

    ## Prerequisites

    1. Windows 7 or later / Windows Server 2003 or later
    2. PowerShell v2 or later
    3. .NET Framework 4 or later

    ## Installing Chocolatey CLI

    [Install Using Powershell](https://www.liquidweb.com/blog/how-to-install-chocolatey-on-windows/)

    ## Verify Installation

    ```shell
    C:\WINDOWS\system32>choco
    Chocolatey v0.10.15
    Please run 'choco -?' or 'choco -?' for help menu.
    ```

    ## Usage

    Install Other Software to Install With Chocolatey

    ```shell
    choco install git
    choco install -y golang
    # verify go instalaiton
    go version
    ```

    Update Program

    ```shell
    сhoco upgrade git
    # or all Programs
    choco upgrade all
    ```

    See Installed Programs

    ```shell
    choco list --local-only
    ```

    ## References

    - [Install Chocolatey: Step-by-step Guide](https://www.liquidweb.com/blog/how-to-install-chocolatey-on-windows/)
    - [How To Install Go and Set Up a Local Programming Environment on Windows 10](https://www.digitalocean.com/community/tutorials/how-to-install-go-and-set-up-a-local-programming-environment-on-windows-10)
    - [How to Install Golang on a Windows Computer](https://www.youtube.com/watch?v=CbBOPK4C2lo)