Skip to content

Commit b0acb23

Browse files
committed
Simplified hello
1 parent 3426e74 commit b0acb23

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/hello.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
package main
22

33
import (
4-
"fmt"
54
"web"
65
)
76

8-
func hello(val string) string { return fmt.Sprintf("hello %s", val) }
7+
func hello(val string) string { return "hello " + val }
98

109
func main() {
1110
web.Get("/(.*)", hello)

0 commit comments

Comments
 (0)