Skip to content

Instantly share code, notes, and snippets.

View renanrt's full-sized avatar

Renan renanrt

  • Lightspeed
  • Auckland
View GitHub Profile
@renanrt
renanrt / main.go
Last active January 28, 2021 23:13
Gorilla web server with health check waiting for SIGTERM signals and sleeping for 1h
package main
import (
"fmt"
"log"
"net/http"
"os"
"os/signal"
"syscall"
"time"
package main
import (
"fmt"
"github.com/fatih/color"
"math/rand"
"time"
)
const (
package main
import (
"crypto/rsa"
"crypto/x509"
"encoding/pem"
"fmt"
)