Skip to content

Commit 8eadc9f

Browse files
committed
Merge branch '17-use-go-1-11' into 'master'
Update Go from 1.9 to 1.11 Closes #17 See merge request tnir/docs.djangoproject.jp!15
2 parents b6ddb61 + e16e87d commit 8eadc9f

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

app.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
runtime: go
2-
api_version: go1.9
1+
runtime: go111
32

43
handlers:
54
- url: /.*
6-
script: _go_app
5+
script: auto
76
secure: always

redirect.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package redirect
1+
package main
22

33
import (
44
"net/http"
@@ -73,6 +73,6 @@ func redirect(w http.ResponseWriter, r *http.Request) {
7373
http.Redirect(w, r, s, 301)
7474
}
7575

76-
func init() {
76+
func main() {
7777
http.HandleFunc("/", redirect)
7878
}

redirect_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package redirect
1+
package main
22

33
import (
44
"testing"

0 commit comments

Comments
 (0)