mirror of
https://github.com/golang/go
synced 2024-11-18 18:44:42 -07:00
go.tools/cmd/godoc: use playground package from go.tools
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/11507044
This commit is contained in:
parent
8cc9c49348
commit
7375911b0e
@ -2,12 +2,6 @@
|
|||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
// +build playground
|
|
||||||
|
|
||||||
// TODO(bradfitz,adg): move the
|
|
||||||
// code.google.com/p/go.talks/pkg/playground package elsewhere, so
|
|
||||||
// go.tools doesn't depend on go.talks.
|
|
||||||
|
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@ -16,7 +10,9 @@ import (
|
|||||||
"go/format"
|
"go/format"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
_ "code.google.com/p/go.talks/pkg/playground"
|
// This package registers "/compile" and "/share" handlers
|
||||||
|
// that redirect to the golang.org playground.
|
||||||
|
_ "code.google.com/p/go.tools/godoc/playground"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
Reference in New Issue
Block a user