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
- Host: GitHub
- URL: https://github.com/tomi77/go-pg-django
- Owner: tomi77
- License: mit
- Created: 2018-02-01T19:56:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T19:54:29.000Z (over 6 years ago)
- Last Synced: 2025-02-06T13:19:53.082Z (4 months ago)
- Topics: database-model, django-models, go, go-package, go-pg, golang, golang-library
- Language: Go
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-pg-django
[](https://goreportcard.com/report/github.com/tomi77/go-pg-django)
[](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 uint32AuthUserID uint32 `pg:",fk:AuthUser"`
AuthUser *auth.User
}
~~~