Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/reznetdevops/which

which in Go
https://github.com/reznetdevops/which

go golang learning-by-doing linux unix which

Last synced: about 1 month ago
JSON representation

which in Go

Awesome Lists containing this project

README

        

# Go Path Lookup Utility

A minimal Go program that finds the full path of an executable in the `PATH` environment variable, similar to the UNIX `which` command.

**Learning Tip**: Implementing simple UNIX tools is a great way to learn Go.

## Usage

Run:
```bash
go run main.go
```

Example:
```bash
go run main.go ls
```

If is found and executable, the program prints its full path.