Skip to content

Instantly share code, notes, and snippets.

@mkatychev
Created June 19, 2022 21:22
Show Gist options
  • Save mkatychev/6d6cf7da3da620966f1bb9be453fe814 to your computer and use it in GitHub Desktop.
Save mkatychev/6d6cf7da3da620966f1bb9be453fe814 to your computer and use it in GitHub Desktop.
Golang notes
# golang manual
tldr go
# vscode
tldr code
# open vscode in current terminal directory
code .
# winget
tldr winget
# winget website:
echo "https://winget.run/"
# winget installs golang
winget install -e --id GoLang.Go
# Create new file in WINDOWS with .go extension
New-Item file_name.go
# We left off last here:
# https://gobyexample.com/variables
# print a file without opening it:
bat go.mod
# change to parent directory
cd ..
# list directory
ls
# list parent directory
ls ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment