1 // Copyright 2012 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
5 // +build cmd_go_bootstrap
7 // This code is compiled only into the bootstrap 'go' binary.
8 // These stubs avoid importing packages with large dependency
9 // trees, like the use of "net/http" in vcs.go.
18 var errHTTP
= errors
.New("no http in bootstrap go command")
20 type HTTPError
struct {
24 func (e
*HTTPError
) Error() string {
28 func Get(url
string) ([]byte, error
) {
32 func GetMaybeInsecure(importPath
string, security SecurityMode
) (string, io
.ReadCloser
, error
) {
33 return "", nil, errHTTP
36 func QueryEscape(s
string) string { panic("unreachable") }
37 func OpenBrowser(url
string) bool { panic("unreachable") }