Debian Codegraph @

buildtags/examples_test.go

raw symbols SCIP
1 package buildtags_test
2
3 import (
4 "fmt"
5
6 "github.com/mmcloughlin/avo/buildtags"
7 )
8
9 func ExampleParseConstraint() {
10 c, err := buildtags.ParseConstraint("a,!b c")
11 fmt.Print(c.GoString())
12 fmt.Println(err)
13 // Output:
14 // // +build a,!b c
15 // <nil>
16 }