https://github.com/aodin/argo
A REST API in Go
https://github.com/aodin/argo
Last synced: 2 months ago
JSON representation
A REST API in Go
- Host: GitHub
- URL: https://github.com/aodin/argo
- Owner: aodin
- License: mit
- Created: 2013-06-17T01:34:34.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-11-28T21:44:36.000Z (over 10 years ago)
- Last Synced: 2025-01-21T08:29:42.278Z (4 months ago)
- Language: Go
- Homepage:
- Size: 332 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Argo
====[](https://travis-ci.org/aodin/argo)
A REST API in Go.
Given an [aspect](https://github.com/aodin/aspect) schema:
```go
import (
sql "github.com/aodin/aspect"
)var usersDB = sql.Table("users",
sql.Column("id", sql.Integer{}),
sql.Column("name", sql.String{}),
sql.Column("age", sql.Integer{}),
sql.Column("password", sql.String{}),
sql.PrimaryKey("id"),
)
```Create a REST resource with the table and a `aspect.Connection`:
```go
users := Resource(
conn,
Table(usersDB),
)
```Happy Hacking,
aodin