Skip to content

Instantly share code, notes, and snippets.

View disq's full-sized avatar

Kemal disq

View GitHub Profile
@disq
disq / examplepool.go
Created January 24, 2017 11:48
example for issue 18081
package examplepool
import (
"context"
"errors"
"fmt"
"sync"
"time"
_ "github.com/alexbrainman/odbc"
@disq
disq / Makefile
Last active January 10, 2022 20:00
Makefile for golang
#
# Generic Go project makefile
#
# Example:
# make PREFIX= DESTDIR=/tmp/project-name-build install
#
# PREFIX is mostly unused, it would be used to expose the installation path to installed files
# For now, running "make install" with PREFIX= is OK (as long as DESTDIR is set)
#
# For capistrano, it would be something like this: