Skip to content

Instantly share code, notes, and snippets.

View adigunhammedolalekan's full-sized avatar
🎯
Working Remotely

Hammed Adigun adigunhammedolalekan

🎯
Working Remotely
View GitHub Profile
package main
import (
"github.com/gorilla/mux"
"go-contacts/app"
"os"
"fmt"
"net/http"
)
@adigunhammedolalekan
adigunhammedolalekan / base.go
Created May 3, 2018 11:49
Connect to a postgresql database using GORM
package models
import (
_ "github.com/jinzhu/gorm/dialects/postgres"
"github.com/jinzhu/gorm"
"os"
"github.com/joho/godotenv"
"fmt"
)
package app
import (
"net/http"
u "lens/utils"
"strings"
"go-contacts/models"
jwt "github.com/dgrijalva/jwt-go"
"os"
"context"