mirror of
https://github.com/golang/go.git
synced 2025-05-30 19:52:53 +00:00
This will fix the images in Brad's GoCon presentation. LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://golang.org/cl/100950043
30 lines
594 B
Go
30 lines
594 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 (
|
|
"mime"
|
|
|
|
"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
|
|
|
|
// App Engine has no /etc/mime.types
|
|
mime.AddExtensionType(".svg", "image/svg+xml")
|
|
}
|
|
|
|
func playable(c present.Code) bool {
|
|
return present.PlayEnabled && c.Play && c.Ext == ".go"
|
|
}
|