From 0ee9872fcd5cf9023cb43a68faf67203cbe81295 Mon Sep 17 00:00:00 2001 From: Andrew Gerrand Date: Fri, 8 Mar 2013 09:22:40 +1100 Subject: go.blog: blog server R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/7382064 --- cmd/blog/appengine.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 cmd/blog/appengine.go (limited to 'cmd/blog/appengine.go') diff --git a/cmd/blog/appengine.go b/cmd/blog/appengine.go new file mode 100644 index 0000000..174efe4 --- /dev/null +++ b/cmd/blog/appengine.go @@ -0,0 +1,19 @@ +// Copyright 2013 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 + +// This file implements an App Engine blog server. + +package main + +import "net/http" + +func init() { + s, err := NewServer("/", "content/", "template/") + if err != nil { + panic(err) + } + http.Handle("/", s) +} -- cgit v1.2.3