github.com/google/capslock@v0.2.3-0.20240517042941-dac19fc347c0/testpkgs/buildtags/tag-linux.go (about) 1 // Copyright 2023 Google LLC 2 // 3 // Use of this source code is governed by a BSD-style 4 // license that can be found in the LICENSE file or at 5 // https://developers.google.com/open-source/licenses/bsd 6 7 //go:build linux && !foo && !arm 8 9 // Package buildtags is used for testing. 10 package buildtags 11 12 import ( 13 "net" 14 ) 15 16 func Foo() { 17 ips, err := net.LookupIP("localhost") 18 if err != nil { 19 println(err) 20 } 21 println(len(ips)) 22 }