Unable to create or install GO tools

I am trying to create some GO tools in my project. First i run

go get golang.org/x/tools/benchmark/parse

Folder / binary structure displays correctly in

$GOPATH/src/golang.org/x/tools/benchmark/parse

I tried to run: go build golang.org/x/tools/benchmark/parse

and

go install golang.org/x/tools/benchmark/parse

however binaries still not showing up in my $GOPATH/bin

Any help is much appreciated!

+4
source share
1 answer

You cannot create a test / parsing, but you can import it.

From Godoc for tools :

The parse package provides support for analyzing test results generated using the 'go test -bench'.

sudorandom comment is right, parse.go package main, , import "golang.org/x/tools/benchmark/parse".

+5

Source: https://habr.com/ru/post/1657173/


All Articles