aboutsummaryrefslogtreecommitdiffstats
path: root/binapi_generator/doc.go
blob: 84a971b86a9120815a41fad0db477e01496532b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Generator of Go structs out of the VPP binary API definitions in JSON format.
//
// The JSON input can be specified as a single file (using the `input-file`
// CLI flag), or as a directory that will be scanned for all `.json` files
// (using the `input-dir` CLI flag). The generated Go bindings will  be
// placed into `output-dir` (by default the current working directory),
// where each Go package will be placed into its own separate directory,
// for example:
//
//    binapi_generator --input-file=examples/bin_api/acl.api.json --output-dir=examples/bin_api
//    binapi_generator --input-dir=examples/bin_api --output-dir=examples/bin_api
//
package main