cmd

command
v0.0.0-...-31dbb72 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0, BSD-2-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package gen/cmd allows to generate .go source files using the go:generate command. Use with "cmd [templateFile] [outputFile] [typeName] [typeReceiver] [Features separated by space]".

In the template the following are available: - typeName as {{.Name}} - typeReceiver as {{.Receiver}} - Features are available via map and can be evaluated as {{if index .Features "extended"}}

Jump to

Keyboard shortcuts

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