Skip to content

Commit 304c653

Browse files
make new version work
- Google now wants you to use main instead of init - don't forget to ListenAndServe
1 parent 2bdef48 commit 304c653

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

026_appengine-deploy/01/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import (
44
"net/http"
55
)
66

7-
func init() {
7+
func main() {
88
http.Handle("/", http.FileServer(http.Dir(".")))
9+
http.ListenAndServe(":8080", nil)
910
}

0 commit comments

Comments
 (0)