{"repo":"hairyhenderson/go-which","free":true,"listed":false,"github":"https://github.com/hairyhenderson/go-which","clone":"git clone https://github.com/hairyhenderson/go-which.git","description":"A cross-platform Go implementation of the which(1) command, usable both as a CLI and library","language":"Go","stars":52,"topics":["go","golang","shell","go-package","library","golang-library","cli","golang-cli","cross-platform","hacktoberfest"],"license":"MIT","category":"cli-tools","readme_excerpt":"go-which [![Build Status][build-image]][build-url] [![hairyhenderson/go-which on DockerHub][dockerhub-image]][dockerhub-url] [![GoDoc][godoc-image]][godocs] A cross-platform Go implementation of the which(1) command, usable both as a CLI and library. Unlike the UNIX which(1) command, even if multiple programs are given as input, only the first one found will be returned. CLI Usage Chances are you don't really need this, since most UNIX-like OSes come with the more established (and significantly smaller) C implementation of which(1) , either as a standalone binary, or as a shell builtin. But if there's some reason this may be useful to you, you can use this just like the normal which(1) : Go package usage If you're writing a program in the Go language, it can be useful to not have to shell out to which(1) to locate a binary. The simplest usage is: See the [godocs][] for more information. License The MIT License Copyright (c) 2018-2020 Dave Henderson [godocs]: https://pkg.go.dev/github.com/hairyhenderson/go-which [build-image]: https://github.com/hairyhenderson/go-which/actions/workflows/build.yml/badge.svg [build-url]: https://github.com/hairyhenderson/go-which/actions/workflows/build.yml [dockerhub-image]: https://img.shields.io/badge/docker-ready-blue.svg [dockerhub-url]: https://hub.docker.com/r/hairyhenderson/go-which [godoc-image]: https://godoc.org/github.com/hairyhenderson/go-which?status.svg","default_branch":null,"files":null,"tree":[],"storefront":"/r/hairyhenderson","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/hairyhenderson/go-which/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}