jonson-generate

command module
v0.0.0-...-1486f21 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: MIT Imports: 15 Imported by: 0

README

jonson-generate

A code generator used for jonson.

The generator will generate code stubs for API calls and provided types.

Installation

go install github.com/doejon/jonson-generate@latest will install the latest version of the generator.

Make sure you do have your go binaries accessible by adding the go binaries to your path: export PATH="$HOME/go/bin:$PATH"

Usage

Ideally, you drop a file into the directory you want to generate with go generate ./... The file's content should look similar to the example below:

package example

//go:generate go run github.com/doejon/jonson-generate

Tag systems exposing API endpoints with // @generate. Tag types which will be provided by a provider with // @generate.

Current limitations

The generator currently only works with the default method name used within jonson.

Dedication

The whole idea for this library was born after a long iteration period with dear friends. It is heavily influenced by one of the best mentors of my (professional) life.

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