mirror of
https://github.com/golang/go
synced 2024-10-01 15:58:33 -06:00
ca18093fea
LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/97030045
25 lines
498 B
Go
25 lines
498 B
Go
// Copyright 2012 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
|
|
|
|
package main
|
|
|
|
import (
|
|
"code.google.com/p/go.tools/present"
|
|
|
|
_ "code.google.com/p/go.tools/playground"
|
|
)
|
|
|
|
var basePath = "./present/"
|
|
|
|
func init() {
|
|
playScript(basePath, "HTTPTransport")
|
|
present.PlayEnabled = true
|
|
}
|
|
|
|
func playable(c present.Code) bool {
|
|
return present.PlayEnabled && c.Play && c.Ext == ".go"
|
|
}
|