| 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. |
| 4 |
|
| 5 |
//go:build cmd_go_bootstrap |
| 6 |
|
| 7 |
// This code is compiled only into the bootstrap 'go' binary. |
| 8 |
// These stubs avoid importing packages with large dependency |
| 9 |
// trees that potentially require C linking, |
| 10 |
// like the use of "net/http" in vcs.go. |
| 11 |
|
| 12 |
package web |
| 13 |
|
| 14 |
import ( |
| 15 |
"errors" |
| 16 |
urlpkg "net/url" |
| 17 |
) |
| 18 |
|
| 19 |
func get(security SecurityMode, url *urlpkg.URL) (*Response, error) { |
| 20 |
return nil, errors.New("no http in bootstrap go command") |
| 21 |
} |
| 22 |
|
| 23 |
func openBrowser(url string) bool { return false } |
| 24 |
|
| 25 |
func isLocalHost(u *urlpkg.URL) bool { return false } |