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