Skip to content

Instantly share code, notes, and snippets.

View saeid-ir's full-sized avatar

Saeid saeid-ir

View GitHub Profile
@saeid-ir
saeid-ir / Scanner.go
Created December 27, 2017 08:27
Interface scanner for pq driver for postgres
package Scanner
import (
"database/sql"
"reflect"
)
// Costume scanner type
type Scanner struct {
*sql.DB
@saeid-ir
saeid-ir / router.go
Last active November 24, 2017 17:01
this package makes julienschmidt's httprouter support group routing
package router
import (
"github.com/julienschmidt/httprouter"
"net/http"
)
var h http.Handler
// SRouter is a http.Handler that wraps httprouter.Router with additional features.