message

package
v29.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Box

func Box(box fs.FS, opts *Options, g *genny.Generator) error

func NewGenerator

func NewGenerator(replacer placeholder.Replacer, opts *Options) (*genny.Generator, error)

NewGenerator returns the generator to scaffold a empty message in a module.

Types

type Options

type Options struct {
	AppName      string
	ProtoDir     string
	ProtoVer     string
	ModuleName   string
	ModulePath   string
	MsgName      multiformatname.Name
	MsgSigner    multiformatname.Name
	MsgDesc      string
	Fields       field.Fields
	ResFields    field.Fields
	NoSimulation bool
}

Options ...

func (*Options) ProtoFile

func (opts *Options) ProtoFile(fname string) string

ProtoFile returns the path to the proto folder.

Jump to

Keyboard shortcuts

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