Source file src/net/netgo_netcgo.go

     1  // Copyright 2023 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 netgo && netcgo
     6  
     7  package net
     8  
     9  func init() {
    10  	// This will give a compile time error about the unused constant.
    11  	// The advantage of this approach is that the gc compiler
    12  	// actually prints the constant, making the problem obvious.
    13  	"Do not use both netgo and netcgo build tags."
    14  }
    15  

View as plain text