Skip to content

Instantly share code, notes, and snippets.

package main
import (
"bytes"
"io/ioutil"
"testing"
"github.com/klauspost/compress/zstd"
"github.com/valyala/gozstd"
)
package main
import (
"bytes"
"io/ioutil"
"testing"
"github.com/klauspost/compress/zstd"
"github.com/valyala/gozstd"
)
frontend fe_http
bind *:80
capture request header Connection len 32
capture response header Connection len 32
default_backend be_go
package main
import (
"log"
"net/http"
)
func main() {
http.HandleFunc("/upload", func(w http.ResponseWriter, req *http.Request) {
})
package main
import (
"fmt"
// "log"
// "time"
"github.com/go-pg/pg"
"github.com/go-pg/pg/orm"
)
package main
import (
"fmt"
"github.com/go-pg/pg"
"github.com/go-pg/pg/orm"
"github.com/go-pg/sharding"
)
package main
import (
"log"
"strconv"
"time"
redis "gopkg.in/redis.v4"
)
package main
import (
"log"
"math/rand"
"strings"
"gopkg.in/pg.v4"
)
package main
import (
"log"
"math/rand"
"gopkg.in/pg.v4"
)
func main() {
package main
import (
"fmt"
"net/http"
"reflect"
"runtime"
"github.com/codegangsta/negroni"
"gopkg.in/airbrake/gobrake.v2"