src-d / enry

A faster file programming language detector
https://blog.sourced.tech/post/enry/
Apache License 2.0
460 stars 51 forks source link

Improve download and usage examples in README.md. #240

Closed creachadair closed 5 years ago

creachadair commented 5 years ago

Addresses #239. The go get command fetches the command-line tool, and does not match the import path for the library. To make things more clear:

  1. Mention explicitly that go get fetches the CLI. Also, to avoid potential issues with pre-modules Go versions, do the fetch in /tmp.

  2. Include an import path explicitly in the source examples.

  3. Mention explicitly how to import enry into a modules build.

creachadair commented 5 years ago

Ping @bzz. Not urgent, but it should be a simple review. 😄