codegendisabler/

directory
v3.7.10 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT

README

CodegenDisabler Plugin

The codegendisabler plugin is a Goa v3 plugin that makes it possible to disable a part of the code generator.

Enabling the Plugin

To enable the plugin simply import one of the codegendisabler packages as follows:

import (
  _ "github.com/tchssk/goaplugins/v3/codegendisabler/gen/http/client/types/client_body_init"
  . "goa.design/goa/v3/dsl"
)

This code disables a part of the code generator which generates by a section template named client-body-init to gen/http/<service>/client/types.go.

Common usage

Disabling the HTTP client code generation
import (
  _ "github.com/tchssk/goaplugins/v3/codegendisabler/gen/http/cli/cli"
  _ "github.com/tchssk/goaplugins/v3/codegendisabler/gen/http/client"
)
Disabling the HTTP server code generation
import (
  _ "github.com/tchssk/goaplugins/v3/codegendisabler/gen/http/server"
)

Jump to

Keyboard shortcuts

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