View pingPong.go
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
c := make(chan struct{}) |
View main.go
package main | |
import ( | |
"context" | |
"fmt" | |
"log" | |
"net/http" | |
"os" | |
"os/signal" | |
"strconv" |
View sjsonvsmap_test.go
package main | |
import ( | |
"testing" | |
"github.com/tidwall/sjson" | |
"github.com/tidwall/gjson" | |
) |
View digitCount.go
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println(CountDigits(1234454666)) | |
} |
View digitCount.go
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
fmt.Println(CountDigits(1234454666)) | |
} |
View profile.jsonc
// To view the default settings, hold "alt" while clicking on the "Settings" button. | |
// For documentation on these settings, see: https://aka.ms/terminal-documentation | |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"defaultProfile": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"profiles": [ | |
{ | |
// Make changes here to the powershell.exe profile | |
"guid": "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}", | |
"name": "Windows PowerShell", |
View context_cancel.go
package main | |
// Here we show how to properly terminate multiple go routines by using a context. | |
// Thanks to WaitGroup we'll be able to end all go routines gracefully before the main function ends. | |
import ( | |
"fmt" | |
"os" | |
"context" | |
"sync" |
View vsc-extensions.bat
code --install-extension christian-kohler.path-intellisense | |
code --install-extension CoenraadS.bracket-pair-colorizer | |
code --install-extension DavidAnson.vscode-markdownlint | |
code --install-extension dbaeumer.vscode-eslint | |
code --install-extension eamodio.gitlens | |
code --install-extension esbenp.prettier-vscode | |
code --install-extension formulahendry.auto-close-tag | |
code --install-extension formulahendry.code-runner | |
code --install-extension jspolancor.presentationmode | |
code --install-extension kenhowardpdx.vscode-gist |
View synccondsimple.go
package main | |
import ( | |
"fmt" | |
"os" | |
"os/signal" | |
"sync" | |
"time" | |
) |