This package provides a simple way to obtain personalized greetings in Go.
Run the following command to install the package:
go get -u github.com/pablo-costanzo/greetings
package main
import (
"fmt"
"github.com/pablo-costanzo/greetings"
)
func main() {
message, err := greetings.Hello("Pablo")
if err != nil {
fmt.Println("An error occurred:", err)
return
}
fmt.Println(message)
}
This example imports the package github.com/pablo-costanzo/greetings and calls the Hello function to get a personalized greeting. If an error occurs, an error message is printed.