jsst

command module
v0.0.0-...-9437b1d Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2016 License: MIT Imports: 10 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

jsst

Build Status Doc License

A CLI Generating Go struct file from JSON Hyper Schema (via prmd).

WIP

Demo

# from file
$ jsst schema.json > struct.go
# from stdin
$ cat schema.json | jsst > struct.go
# change package
$ jsst schema.json -p schema > struct.go

Installation

$ go get github.com/moqada/jsst

Usage

usage: jsst [<flags>] [<file>]

Flags:
  -h, --help            Show context-sensitive help (also try --help-long and --help-man).
  -p, --package="main"  Package name for Go struct file
      --version         Show application version.

Args:
  [<file>]  Path of JSON Schema

Output Example: ./convertor_test.go

Todo

  • Add tests
  • Support anyOf, allOf, oneOf
  • Support Multiple types

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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