Translate django model to go struct.
Project description
# Django Model 2 Go Struct
for gorm or other ORM operation.
Depends in go code:
https://github.com/jinzhu/gorm
https://github.com/guregu/null
## Install
```bash
git clone /django2go.git
cd django2go
python setup.py install .
```
## Usage:
settings.py
```python
INSTALLED_APPS = [
...
'django2go',
...
]
```
run CMD:
`python manage.py model2go app_name`
Example generated go code: [testapp.go](./test_project/testapp.go)
for gorm or other ORM operation.
Depends in go code:
https://github.com/jinzhu/gorm
https://github.com/guregu/null
## Install
```bash
git clone /django2go.git
cd django2go
python setup.py install .
```
## Usage:
settings.py
```python
INSTALLED_APPS = [
...
'django2go',
...
]
```
run CMD:
`python manage.py model2go app_name`
Example generated go code: [testapp.go](./test_project/testapp.go)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django2go-0.1.1.tar.gz
(4.0 kB
view hashes)
Built Distribution
Close
Hashes for django2go-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a72706322ce1bd4161224b6f52051066783f7cf2cb76d17b7bc9c5bdabe408a0 |
|
MD5 | 67ad2ada48274b7e3bd90c6ff96138f6 |
|
BLAKE2b-256 | 55a1ebc656f795f5949d7d98fddde8ab7b0c26fdbbc5eaff6f831949f39d1dcb |