Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joefitzgerald/openair
A go generator for the OpenAir XML API
https://github.com/joefitzgerald/openair
go golang openair
Last synced: 24 days ago
JSON representation
A go generator for the OpenAir XML API
- Host: GitHub
- URL: https://github.com/joefitzgerald/openair
- Owner: joefitzgerald
- License: other
- Created: 2017-02-15T17:56:46.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-10T21:32:01.000Z (over 7 years ago)
- Last Synced: 2024-12-06T20:41:44.165Z (27 days ago)
- Topics: go, golang, openair
- Language: Go
- Size: 39.1 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## OpenAir XML API Generator
Use `go generate` to generate an API for the [OpenAir XML API](https://www.openair.com/download/NetSuiteOpenAirXMLAPIGuide.pdf).
### Usage
**Note:** This project requires Go 1.8 or later to build.
* `go get -u github.com/joefitzgerald/openair`
* Create `definition.go` in a package that you wish to have generated files in, with the following content:
```
package openair//go:generate openair -prefix=openair_ -suffix= -object=Customer,Project,User,Timetype,Timesheet,TaskTimecard,Task
```
* Run `go generate .` in the package that contains `definition.go`
* Observe new files generated:
* `openair_common.go`
* `openair_customer.go`
* `openair_project.go`
* `openair_task.go`
* `openair_tasktimecard.go`
* `openair_timesheet.go`
* `openair_timetype.go`
* `openair_user.go`### License
Apache 2.0