cmd/go: check for another GCC error message
[official-gcc.git] / libgo / go / cmd / go / internal / web / bootstrap.go
blobd1d4621a44b6884e5d1f862524c6528a6f0fb087
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.
11 package web
13 import (
14 "errors"
15 "io"
18 var errHTTP = errors.New("no http in bootstrap go command")
20 type HTTPError struct {
21 StatusCode int
24 func (e *HTTPError) Error() string {
25 panic("unreachable")
28 func Get(url string) ([]byte, error) {
29 return nil, errHTTP
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") }