Potato is a golang module that is intended for testing & publishing modules on pkg.go.dev
Use the package manager go get to install foobar.
go get github.com/yeganathan18/potato
import (
"fmt"
"log"
"github.com/yeganathan18/potato"
)
message, err := potato.Hello('John')
// If an error was returned, print it to the console
if err != nil {
log.Fatal(err)
}
// returns 'Hi, John. Welcome!'
fmt.Println(message)
If you have any questions or comments, please open an issue or open a pull request on this repository.
Feel free to use this is as a reference for creating your own modules and publish it on pkg.go.dev.