Help us shape the future of Go! Take the 2026 Go Developer Survey

script

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cell = cell.Module(
	"example",
	"Example module",

	cell.Provide(
		New,
		ExampleCommands,
	),
)

Cell defines our example module that provides the Example object and script commands to interact with it.

Functions

func ExampleCommands

func ExampleCommands(e *Example) hive.ScriptCmdsOut

Types

type Example

type Example struct {
	// contains filtered or unexported fields
}

func New

func New(log *slog.Logger) *Example

func (*Example) SayHello

func (e *Example) SayHello(name, greeting string) string

Jump to

Keyboard shortcuts

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