Skip to content

Conversation

@krudio
Copy link

@krudio krudio commented Nov 13, 2020

Additional steps for new Go users

Additional steps for new Go users

```shell
check-graphite -g graphite.example.com -m 'my.metric' -w 10 -c 100
go-check-graphite -g graphite.example.com -m 'my.metric' -w 10 -c 100
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This slightly confusing the but the executable as produced by goreleaser is actually check-graphite, but when using go install it uses the default executable name which is equal to the last directory in the install path.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, interesting, I wasn't aware of that caveat. It was something I ran into so I figured others might end up pinging you with the same question :)

## Installation

`go install github.com/segfaultax/go-check-graphite`
1. Make sure you have Go installed first. If you're on a Mac, you can install
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These steps are redundant with every other go package, but since you took the effort let me clean it up slightly. What do you think of this?


  1. Install Go (this project uses Go Modules, ensure you're using Go 1.11+)
  2. Download: go get github.com/segfaultax/go-check-graphite
  3. If you'd like to install it locally: go install github.com/segfaultax/go-check-graphite

Note: When installed via go install, the executable will be named go-check-graphite.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants