gnostic-go-generator

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2017 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Go Generator Plugin

This directory contains a gnostic plugin that can be used to generate a Go client library and scaffolding for a Go server for an API with an OpenAPI description.

The plugin can be invoked like this:

gnostic bookstore.json --go-generator-out=bookstore

bookstore is the name of a directory where the generated code will be written. bookstore will also be the package name used for generated code.

By default, both client and server code will be generated. If the gnostic-go-generator binary is also linked from the names gnostic-go-client and gnostic-go-server, then only client or only server code can be generated as follows:

gnostic bookstore.json --go-client-out=bookstore

gnostic bookstore.json --go-server-out=bookstore

For example usage, see the examples/v2.0/bookstore directory.

Documentation

Overview

gnostic_go_generator is a sample Gnostic plugin that generates Go code that supports an API.

Directories

Path Synopsis
examples
v2.0/apis_guru command
v2.0/xkcd command

Jump to

Keyboard shortcuts

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