I am trying to build some GO tools in my project. I first run
go get golang.org/x/tools/benchmark/parse
The folder/binary structure does appear correctly under
$GOPATH/src/golang.org/x/tools/benchmark/parse
I tried running: go build golang.org/x/tools/benchmark/parse
and
go install golang.org/x/tools/benchmark/parse
however the binaries still do not appear in my $GOPATH/bin
Any help is greatly appreciated!
You can't build benchmark/parse, but you can import it.
From Godoc for Tools:
Package parse provides support for parsing benchmark results as generated by 'go test -bench'.
sudorandom's comment is right, parse.go doesn't use package main
, so it won't generate a binary, while you can use it within your own code with import "golang.org/x/tools/benchmark/parse"
.