generate

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Usage = `` /* 1270-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func Generate

func Generate(dir string, pkgs []string, opt Options) error

Generate generates Service Weaver code for the specified packages. The list of supplied packages are treated similarly to the arguments passed to "go build" (see "go help packages" for details).

Types

type Options

type Options struct {
	// If non-nil, use the specified function to report warnings.
	Warn func(error)
}

Options controls the operation of Generate.

Jump to

Keyboard shortcuts

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