Skip to content

Instantly share code, notes, and snippets.

@ahmetb
Created August 28, 2019 17:05
Show Gist options
  • Save ahmetb/782d56833c496c4070cb6d0daddd89f2 to your computer and use it in GitHub Desktop.
Save ahmetb/782d56833c496c4070cb6d0daddd89f2 to your computer and use it in GitHub Desktop.

Revisions

  1. ahmetb created this gist Aug 28, 2019.
    14 changes: 14 additions & 0 deletions probe.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    // Package handler (directory named 'api/') is recognized
    // by ZEIT Now v2 Lambda platform.
    package handler

    import (
    "net/http"
    )

    func init() { log.SetFlags(log.Lmicroseconds) }

    var _ http.HandlerFunc = Probe // type check

    func Probe(w http.ResponseWriter, req *http.Request) {
    }