Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

greet.gno

0.45 Kb · 15 lines
 1// Package greet is a tiny pure package used as a canary: it proves that
 2// versioned cross-package resolution (gno.land/p/moul/greet/v0) works in the
 3// workspace and in CI. Replace or remove it once real packages land.
 4package greet
 5
 6import "strings"
 7
 8// Greet returns a friendly greeting for name (defaults to "world").
 9func Greet(name string) string {
10	name = strings.TrimSpace(name)
11	if name == "" {
12		name = "world"
13	}
14	return "Hello, " + name + "!"
15}