Playground
gnomod.toml
module = "gno.land/p/moul/greet/v0" gno = "0.9" [addpkg] creator = "g1manfred47kzduec920z88wfr64ylksmdcedlf5" height = 25657 max_deposit = "100000000ugnot"
greet.gno
// Package greet is a tiny pure package used as a canary: it proves that
// versioned cross-package resolution (gno.land/p/moul/greet/v0) works in the
// workspace and in CI. Replace or remove it once real packages land.
package greet
import "strings"
// Greet returns a friendly greeting for name (defaults to "world").
func Greet(name string) string {
name = strings.TrimSpace(name)
if name == "" {
name = "world"
}
return "Hello, " + name + "!"
}