goaversionremover

package
v3.14.6 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 3 Imported by: 0

README

GoaVersionRemover Plugin

The goaversionremover plugin is a Goa v3 plugin that removes the Goa version in the header of generated files.

Enabling the Plugin

To enable the plugin simply import as follows:

import (
  _ "github.com/tchssk/goaplugins/v3/goaversionremover"
  . "goa.design/goa/v3/dsl"
)

Effects on Code Generation

Enabling the plugin changes the behavior of the gen command of the goa tool.

The gen command output is modified as follows:

  1. All headers in the generated files are modified to not contain the Goa version.

    -	// Code generated by goa v3.14.4, DO NOT EDIT.
    +	// Code generated by goa, DO NOT EDIT.
    

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(genpkg string, roots []eval.Root, files []*codegen.File) ([]*codegen.File, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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