Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/reznetdevops/which
- Owner: rezNetDevOps
- Created: 2024-10-26T17:33:04.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-14T01:02:07.000Z (2 months ago)
- Last Synced: 2024-11-14T01:32:27.701Z (2 months ago)
- Topics: go, golang, learning-by-doing, linux, unix, which
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.