go.tools/cmd/present: register SVG mime type

This will fix the images in Brad's GoCon presentation.

LGTM=bradfitz
R=golang-codereviews, bradfitz
CC=golang-codereviews
https://golang.org/cl/100950043
This commit is contained in:
Andrew Gerrand 2014-06-03 14:16:59 +10:00
parent 96cece04e7
commit 83c1b4e7d4
1 changed files with 5 additions and 0 deletions

View File

@ -7,6 +7,8 @@
package main
import (
"mime"
"code.google.com/p/go.tools/present"
_ "code.google.com/p/go.tools/playground"
@ -17,6 +19,9 @@ 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 {