What do you want to save?
Add Code snippet
New code examples
-
-
TypeScript 2021-11-19 15:10:17
golang ssh server and lets encrypt auto
package main import ( "crypto/tls" "fmt" "net/http" "golang.org/x/crypto/acme/autocert" ) func main() { mux := http.NewServeMux() mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {... Add solution -
Go 2021-11-13 13:07:19
webscraper using Go
# Web Scraper in Golang # source: golangcode.com/basic-web-scraper package main import ( "fmt" "log" "net/http" "github.com/PuerkitoBio/goquery" ) func main() { blogTitles, err := GetLatestBlogTitles(&quo... Add solution -
Other 2021-11-10 23:20:12
check go version
#go to your home directory and get the golang tarball using curl cd ~ #change "go1.15.2" to whatever version you want curl -O https://dl.google.com/go/go1.15.2.linux-amd64.tar.gz #extract the download using tar tar xvf go1.15.2.linux-amd64.tar.... Add solution -
Go 2021-10-29 18:53:20
binary tree in golang
// Binary Tree in Golang package main import ( "fmt" "os" "io" ) type BinaryNode struct { left *B... Add solution