github.com/gernest/nezuko@v0.1.2/internal/modfetch/noweb.go (about)

     1  // Copyright 2018 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  // +build cmd_go_bootstrap
     6  
     7  package modfetch
     8  
     9  import (
    10  	"fmt"
    11  	"io"
    12  )
    13  
    14  func webGetGoGet(url string, body *io.ReadCloser) error {
    15  	return fmt.Errorf("no network in go_bootstrap")
    16  }
    17  
    18  func webGetBytes(url string, body *[]byte) error {
    19  	return fmt.Errorf("no network in go_bootstrap")
    20  }
    21  
    22  func webGetBody(url string, body *io.ReadCloser) error {
    23  	return fmt.Errorf("no network in go_bootstrap")
    24  }