Skip to content
/ where Public

A "which" or "command -v" like tool for Go.

License

Notifications You must be signed in to change notification settings

mjwhitta/where

Repository files navigation

where

Yum

Go Report Card License

What is this?

A which or command -v like tool for Go.

How to install

Open a terminal and run the following:

$ go get --ldflags "-s -w" --trimpath -u github.com/mjwhitta/where
$ go install --ldflags "-s -w" --trimpath \
    github.com/mjwhitta/where/cmd/where@latest

Or compile from source:

$ git clone https://github.com/mjwhitta/where.git
$ cd where
$ git submodule update --init
$ make

Usage

package main

import (
    "fmt"

    "github.com/mjwhitta/where"
)

func main() {
    fmt.Println(where.Is("bash"))
}

Links

About

A "which" or "command -v" like tool for Go.

Resources

License

Stars

Watchers

Forks