github.com/likebike/go--@v0.0.0-20190911215757-0bd925d16e96/go/src/cmd/vet/testdata/buildtag/buildtag_bad.go (about)

     1  // This file contains misplaced or malformed build constraints.
     2  // The Go tool will skip it, because the constraints are invalid.
     3  // It serves only to test the tag checker during make test.
     4  
     5  // Mention +build // ERROR "possible malformed \+build comment"
     6  
     7  // +build !!bang // ERROR "invalid double negative in build constraint"
     8  // +build @#$ // ERROR "invalid non-alphanumeric build constraint"
     9  
    10  // +build toolate // ERROR "build comment must appear before package clause and be followed by a blank line"
    11  package bad
    12  
    13  // This is package 'bad' rather than 'main' so the erroneous build
    14  // tag doesn't end up looking like a package doc for the vet command
    15  // when examined by godoc.