goadesignupgrader

package module
v0.0.0-...-61ca82d Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2020 License: MIT Imports: 11 Imported by: 0

README

goadesignupgrader

A tool to upgrade a design definition for Goa from v1 to v3

GoDoc GitHub Actions GitHub

Installation

$ go get github.com/goadesign/goadesignupgrader/...

Usage

$ goadesignupgrader [design package]

You can use -fix flag to apply all suggested fixes.

$ goadesignupgrader -fix [design package]

It's recommended to use together with gormt.

$ goadesignupgrader -fix [design package]; gofmt -s -w .

Supported diagnostics

  • Import declarations
  • HTTP status constants
Supported DataTypes
  • DateTime
  • Integer
Supported DSLs
  • Action
  • BasePath
  • CONNECT
  • CanonicalActionName
  • Consumes
  • DELETE
  • DefaultMedia
  • GET
  • HEAD
  • HashOf
  • Headers
  • Media
  • MediaType
  • Metadata
  • OPTIONS
  • PATCH
  • POST
  • PUT
  • Params
  • Parent
  • Produces
  • Resource
  • Response
  • Routing
  • Status
  • TRACE

License

MIT License

Documentation

Index

Constants

View Source
const Doc = "upgrade a design definition for Goa from v1 to v3"

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "goadesignupgrader",
	Doc:  Doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		inspect.Analyzer,
	},
}

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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