2015-09-16 20:11:32 -06:00
|
|
|
// Copyright 2015 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
// +build appengine appenginevm
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/url"
|
|
|
|
|
|
|
|
"golang.org/x/tools/present"
|
2015-09-16 21:07:34 -06:00
|
|
|
|
|
|
|
_ "golang.org/x/tools/playground"
|
2015-09-16 20:11:32 -06:00
|
|
|
)
|
|
|
|
|
|
|
|
func initPlayground(basepath string, origin *url.URL) {
|
|
|
|
playScript(basepath, "HTTPTransport")
|
|
|
|
}
|
|
|
|
|
|
|
|
func playable(c present.Code) bool {
|
|
|
|
return present.PlayEnabled && c.Play && c.Ext == ".go"
|
|
|
|
}
|