hello

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 1 Imported by: 0

README

hello - welcome message

You can use this code to create a welcome message, and it's easy to do so.:

1. Create a variable with the type *replyme.App:

app := &replyme.App{
    Name:  "hello",
    Usage: "Hello World",
    Commands: []*replyme.Command{
        {
            Name:  "hello",
            Usage: "Print Hello World",
            Action: func(ctx *replyme.Context) error {
                ctx.Print("Hello, World!")
                return nil
            },
        },
    },
}

2. Run the 'replyme`:

err := replyme.Run(app)
if err != nil {
    panic(err)
}

Ready! Now you can run your code using go run

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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