An open API service indexing awesome lists of open source software.

https://github.com/tomi77/go-pg-django

Django models for Golang go-pg
https://github.com/tomi77/go-pg-django

database-model django-models go go-package go-pg golang golang-library

Last synced: 2 months ago
JSON representation

Django models for Golang go-pg

Awesome Lists containing this project

README

        

# go-pg-django

[![Go Report Card](https://goreportcard.com/badge/github.com/tomi77/go-pg-django)](https://goreportcard.com/report/github.com/tomi77/go-pg-django)
[![GoDoc](https://godoc.org/github.com/tomi77/go-pg-django?status.svg)](https://godoc.org/github.com/tomi77/go-pg-django)

Django models for Golang [go-pg](https://github.com/go-pg/pg)

## Installation

~~~sh
go get -u github.com/tomi77/go-pg-django
~~~

## Usage

~~~go
import "github.com/tomi77/go-pg-django/auth"

type Tab struct {
ID uint32

AuthUserID uint32 `pg:",fk:AuthUser"`
AuthUser *auth.User
}
~~~