Skip to content

Go-Which: A Simplified Reimplementation of the Unix 'which' Command in Go. A beginner-friendly project demonstrating basic Go concepts and CLI application development.

Notifications You must be signed in to change notification settings

AyoubIssaad/go-which

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

go-which

Go-Which is a simplified reimplementation of the Unix 'which' command built in Go. This project is designed to be a practical, beginner-friendly introduction to Go programming, showcasing fundamental concepts such as handling command-line arguments, reading environment variables, and working with file paths.

Tutorial

This project was created as part of a tutorial for beginners to learn Go (Golang). It covers the basics of Go's syntax and features by building a CLI tool that mimics the Unix 'which' command. This command is used to locate the path of executable binaries in the system.

For a detailed guide and explanation of how this project was built, check out the full tutorial on my website: Go-Which Tutorial

Getting Started

To get started with Go-Which, you need to have Go installed on your system. You can download and install Go from here.

Installation

  1. Clone the repository:
git clone https://github.com/AyoubIssaad/go-which.git
  1. Navigate to the cloned directory:
cd go-which
  1. Run the program:
go run main.go [executableName]

Replace [executableName] with the name of the binary you want to locate.

Contributing

Contributions to the project are welcome! To continue learning together, you can develop a new feature and submit a new PR, I'll review it and merge it to the code.

License

This project is licensed under the MIT License

About

Go-Which: A Simplified Reimplementation of the Unix 'which' Command in Go. A beginner-friendly project demonstrating basic Go concepts and CLI application development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages