Created
June 19, 2022 21:22
-
-
Save mkatychev/6d6cf7da3da620966f1bb9be453fe814 to your computer and use it in GitHub Desktop.
Golang notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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