openair

command module
v0.0.0-...-6e96200 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

README

OpenAir XML API Generator

Use go generate to generate an API for the OpenAir XML API.

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL