☰
Debian Codegraph
@
0.6.0-1
0.5.0-1
/
/
buildtags
/
examples_test.go
☽
☼
buildtags/examples_test.go
code
plain
raw
symbols
SCIP
BSD-3-clause
2018 Michael McLoughlin
debian/copyright
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
}