Update README.md
This commit is contained in:
		
							parent
							
								
									0fe7400bad
								
							
						
					
					
						commit
						cb5bc74ff9
					
				
							
								
								
									
										22
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								README.md
									
									
									
									
									
								
							@ -2,7 +2,7 @@ A simple `helloworld` for Golang in VsCode.
 | 
			
		||||
 | 
			
		||||
# Golang the compiler
 | 
			
		||||
 | 
			
		||||
Download Golang [installer](https://go.dev/dl/). A least on Mac the installer shall be able to deal with [updating OS](https://gist.github.com/Linerre/f11ad4a6a934dcf01ee8415c9457e7b2) `PATH` environment variable with  `$GOPATH/bin`.
 | 
			
		||||
Download Golang [installer](https://go.dev/dl/). A least on Mac the installer shall be able to deal with [updating OS](https://gist.github.com/Linerre/f11ad4a6a934dcf01ee8415c9457e7b2) `PATH` environment variable with `$GOPATH/bin`.
 | 
			
		||||
 | 
			
		||||
## Debugger
 | 
			
		||||
 | 
			
		||||
@ -14,11 +14,11 @@ go install -v github.com/go-delve/delve/cmd/dlv@latest
 | 
			
		||||
 | 
			
		||||
- Install [Visual Studio Code](https://code.visualstudio.com)
 | 
			
		||||
-  `golang` extension
 | 
			
		||||
  To launch *VS Code Quick Open* press (Ctrl + P), type: `ext install Go` ,  hit enter. Follow basic instructions.
 | 
			
		||||
  To launch *VS Code Quick Open* press (Ctrl + P), type: `ext install Go`,  hit enter. Follow basic instructions.
 | 
			
		||||
 | 
			
		||||
# The Project
 | 
			
		||||
 | 
			
		||||
Inside `Visual Studio Code` Open Folder `Ctrl + Shift + E` , e.g.: `$USER\code\hello\`.  Then Open `hello.go` from that folder. Or make new file (Ctrl + N) and save it on this folder:
 | 
			
		||||
Inside `Visual Studio Code` Open Folder `Ctrl + Shift + E` , e.g.: `$USER\code\hello\`.  Then Open `hello.go` from that folder. Or make new file (Ctrl + N) and save it on this folder:
 | 
			
		||||
 | 
			
		||||
```go
 | 
			
		||||
package main
 | 
			
		||||
@ -34,15 +34,15 @@ func main() {
 | 
			
		||||
 | 
			
		||||
Some useful hotkeys:
 | 
			
		||||
- `Ctrl + Shift + D` - Open Debugger
 | 
			
		||||
- `F9` - set or toggle Breakpoint. *Try this line `i := 101`*
 | 
			
		||||
- `F5` - Start Debugging or to Run the Application. If asked to select environment: select `Go`
 | 
			
		||||
- `F10` -  Step Over
 | 
			
		||||
- `F11` - Step Into
 | 
			
		||||
- `Shift + F11` - Step Out
 | 
			
		||||
- `Shift + F5` - Stop Debugging
 | 
			
		||||
-  `Ctrl + Shift + F5` - Restart Debugging
 | 
			
		||||
- `F9` - set or toggle Breakpoint. *Try this line `i := 101`*
 | 
			
		||||
- `F5` - Start Debugging or to Run the Application. If asked to select environment: select `Go`
 | 
			
		||||
- `F10` -  Step Over
 | 
			
		||||
- `F11` - Step Into
 | 
			
		||||
- `Shift + F11` - Step Out
 | 
			
		||||
- `Shift + F5` - Stop Debugging
 | 
			
		||||
- `Ctrl + Shift + F5` - Restart Debugging
 | 
			
		||||
 | 
			
		||||
Typical aka untouched `launch.json` :
 | 
			
		||||
Typical aka untouched `launch.json`:
 | 
			
		||||
 | 
			
		||||
```json
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user