Skip to content

Instantly share code, notes, and snippets.

View techcrunch9's full-sized avatar

techcrunch9 techcrunch9

View GitHub Profile

Keybase proof

I hereby claim:

  • I am techcrunch9 on github.
  • I am blackcanary (https://keybase.io/blackcanary) on keybase.
  • I have a public key ASCVc9NA1ATpbuEHiGrBCYdotowZhOWA-7dlVF4zh1vNmQo

To claim this, I am signing this object:

@techcrunch9
techcrunch9 / upload.go
Created August 13, 2018 11:17 — forked from ebraminio/upload.go
golang upload client and server
// curl -X POST -H "Content-Type: application/octet-stream" --data-binary '@filename' http://127.0.0.1:5050/upload
package main
import (
"fmt"
"io"
"net/http"
"os"
"time"