Documentation ¶ Index ¶ Constants func Generate(dir string, pkgs []string, opt Options) error type Options Constants ¶ View Source const ( Usage = `` /* 1276-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. Source Files ¶ View all Source files generator.go types.go Click to show internal directories. Click to hide internal directories.