Documentation ¶ Index ¶ Constants func Generate(dir string, pkgs []string, opt Options) error type Options Constants ¶ View Source const ( Usage = `` /* 1264-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 ¶ added in v0.7.2 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 Directories ¶ Show internal Expand all Path Synopsis example Click to show internal directories. Click to hide internal directories.