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

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

greet.gno

0.46 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/nym-moultest123/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}