gsg

command module
v0.0.0-...-0759755 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 2 Imported by: 0

README

gsg

go server generator - an opinionated web server generator for golang

gsg reads a yaml file of an API declaration and 3 things generates:

  • model: golang struct representations of api resources
  • server: golang interface & stubbed implementation for the api
  • client: golang http client for the api

It's hacky. I might clean it up. For now, refer the example commands in the Makefile for usage.

I could use a standard format like Open API ...

Or generate Open API from the yaml here ...

But I am just using this for some small personal project.

I was unstatisfied by golang openapi code generators so started down my own here

If I build this out, I may turn this into a golang code generator for an Open API specification.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
gen
an opinionated code generator for generating boilerplate from yml
an opinionated code generator for generating boilerplate from yml

Jump to

Keyboard shortcuts

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