Categorygithub.com/johnazedo/gopostgres
modulepackage
0.0.3
Repository: https://github.com/johnazedo/gopostgres.git
Documentation: pkg.go.dev

# README

Gopostgres

A simple way to use migrations and postgres with go.

Usage

Create this fields in your .env file:

POSTGRES_USER=your_user
POSTGRES_PASSWORD=your_password
POSTGRES_DB=your_database_name
POSTGRES_HOST=your_host
POSTGRES_PORT=your_port

After that call the GetDatabase function in your main function:

import "github.com/johnazedo/gopostgres"

func main() {
    db, err := gopostgres.GetDatabase()
    if err != nil {
        panic(err)
    }
}

# Packages

No description provided by the author

# Functions

No description provided by the author

# Structs

No description provided by the author