Skip to content

Instantly share code, notes, and snippets.

@igorzakhar
igorzakhar / gist:fe79541bb5e430d300f1a1fb296cbfc4
Created January 15, 2018 15:29 — forked from ismasan/gist:3804361
async fetching of urls using goroutines and channels
package main
import (
"fmt"
"net/http"
"time"
)
var urls = []string{
"http://pulsoconf.co/",
@igorzakhar
igorzakhar / maxconn.go
Created April 20, 2021 13:56 — forked from caiofilipini/maxconn.go
Go (golang) HTTP server with a simple connection limiter (max conn)
package main
import (
"context"
"flag"
"log"
"net"
"net/http"
"os"
"os/signal"
@igorzakhar
igorzakhar / client.go
Created April 24, 2021 08:43 — forked from spikebike/client.go
TLS server and client
package main
import (
"crypto/tls"
"crypto/x509"
"fmt"
"io"
"log"
)
package main
import (
"crypto/ed25519"
"crypto/rand"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"fmt"
"math/big"