Skip to content

Latest commit

 

History

History

Postgres-CRUD

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Postgres CRUD

This is an example project that shows the basics of working with the PostgresSQL database in golang. Go provides an abstract datalayer using the database/sql standard library.

Prerequisites

  • Local Postgres instance
  • Valid Golang installation

Getting started

First you need to install the Postgres Go drivers.

go get -u github.com/lib/pq

You can then start the application using go run.

go run postgres.go

Implementation