Gofis

Gofis is a lightweight command line tool for quickly searching files in the file system.
It is written in Go and makes heavy use of parallelism (goroutines), which makes it especially efficient
when working with large directories and projects.

The project is available on GitHub:
https://github.com/demensdeum/gofis

🧠 What is Gofis

Gofis is a CLI utility for searching files by name, extension or regular expression.
Unlike classic tools like find, gofis was originally designed
with an emphasis on speed, readable output, and parallel directory processing.

The project is distributed under the MIT license and can be freely used
for personal and commercial purposes.

⚙️ Key features

  • Parallel directory traversal using goroutines
  • Search by file name and regular expressions
  • Filtering by extensions
  • Ignoring heavy directories (.git, node_modules, vendor)
  • Human-readable output of file sizes
  • Minimal dependencies and fast build

🚀 Installation

Requires Go installed to work.

git clone https://github.com/demensdeum/gofis
cd gofis
go build -o gofis main.go

Once built, the binary can be used directly.

There is also a standalone version for modern versions of Windows on the releases page:
https://github.com/demensdeum/gofis/releases/

🔍 Examples of use

Search files by name:

./gofis -n "config" -e ".yaml" -p ./src

Quick positional search:

./gofis "main" "./projects" 50

Search using regular expression:

./gofis "^.*\.ini$" "/"

🧩 How it works

Gofis is based on Go’s competitive model:

  • Each directory is processed in a separate goroutine
  • Uses a semaphore to limit the number of active tasks
  • Channels are used to transmit search results

This approach allows efficient use of CPU resources
and significantly speeds up searching on large file trees.

👨‍💻 Who is Gofis suitable for?

  • Developers working with large repositories
  • DevOps and system administrators
  • Users who need a quick search from the terminal
  • For those learning the practical uses of concurrency in Go

📌 Conclusion

Gofis is a simple but effective tool that does one thing and does it well.
If you often search for files in large projects and value speed,
this CLI tool is definitely worth a look.