hello.gno
0.34 Kb · 11 lines
1// Package hello_world demonstrates basic usage of Render().
2// Try adding `:World` at the end of the URL, like `.../hello:World`.
3package hello
4
5// Render outputs a greeting. It customizes the message based on the provided path.
6func Render(path string) string {
7 if path == "" {
8 return "# Hello, 世界!"
9 }
10 return "# Hello, " + path + "!"
11}