🌳 πŸ“‚ The utility displays a tree of directories and files(symlinks in future).

dirTree

The utility displays a tree of directories and files.

usage: dirTree [-f]

How it works with directory, where I wrote this project for example

>$ go run main.go 
β”œβ”€β”€β”€.git
β”‚   β”œβ”€β”€β”€hooks
β”‚   β”œβ”€β”€β”€info
β”‚   β”œβ”€β”€β”€logs
β”‚   β”‚   └───refs
β”‚   β”‚       β”œβ”€β”€β”€heads
β”‚   β”‚       └───remotes
β”‚   β”‚           └───origin
β”‚   β”œβ”€β”€β”€objects
β”‚   β”‚   β”œβ”€β”€β”€11
β”‚   β”‚   β”œβ”€β”€β”€info
β”‚   β”‚   └───pack
β”‚   └───refs
β”‚       β”œβ”€β”€β”€heads
β”‚       β”œβ”€β”€β”€remotes
β”‚       β”‚   └───origin
β”‚       └───tags
└───.idea

-f option adds files and their weight in parentheses to the output

$ go run main.go -f
β”œβ”€β”€β”€.git
β”‚   β”œβ”€β”€β”€COMMIT_EDITMSG (56 bytes)
β”‚   β”œβ”€β”€β”€HEAD (21 bytes)
β”‚   β”œβ”€β”€β”€config (301 bytes)
β”‚   β”œβ”€β”€β”€description (73 bytes)
β”‚   β”œβ”€β”€β”€hooks
β”‚   β”‚   β”œβ”€β”€β”€applypatch-msg.sample (478 bytes)
β”‚   β”‚   └───update.sample (3610 bytes)
β”‚   β”œβ”€β”€β”€index (209 bytes)
β”‚   β”œβ”€β”€β”€info
β”‚   β”‚   └───exclude (240 bytes)
β”‚   β”œβ”€β”€β”€logs
β”‚   β”‚   β”œβ”€β”€β”€HEAD (898 bytes)
β”‚   β”‚   └───refs
β”‚   β”‚       β”œβ”€β”€β”€heads
β”‚   β”‚       β”‚   └───main (898 bytes)
β”‚   β”‚       └───remotes
β”‚   β”‚           └───origin
β”‚   β”‚               β”œβ”€β”€β”€HEAD (185 bytes)
β”‚   β”‚               └───main (608 bytes)
β”‚   β”œβ”€β”€β”€objects
β”‚   β”‚   β”œβ”€β”€β”€11
β”‚   β”‚   β”‚   └───1db3d29b4bbd210a836d300c65fdd6923d2384 (85 bytes)
β”‚   β”‚   β”œβ”€β”€β”€info
β”‚   β”‚   └───pack
β”‚   β”‚       β”œβ”€β”€β”€pack-f8f5eec2bf7ac1f52ff155f7b21b24aa8cfe1717.idx (1156 bytes)
β”‚   β”‚       └───pack-f8f5eec2bf7ac1f52ff155f7b21b24aa8cfe1717.pack (655 bytes)
β”‚   β”œβ”€β”€β”€packed-refs (112 bytes)
β”‚   └───refs
β”‚       β”œβ”€β”€β”€heads
β”‚       β”‚   └───main (41 bytes)
β”‚       β”œβ”€β”€β”€remotes
β”‚       β”‚   └───origin
β”‚       β”‚       β”œβ”€β”€β”€HEAD (30 bytes)
β”‚       β”‚       └───main (41 bytes)
β”‚       └───tags
β”œβ”€β”€β”€.idea
β”‚   β”œβ”€β”€β”€.gitignore (0 bytes)
β”‚   β”œβ”€β”€β”€dirTree.iml (322 bytes)
β”‚   β”œβ”€β”€β”€modules.xml (266 bytes)
β”‚   β”œβ”€β”€β”€vcs.xml (180 bytes)
β”‚   └───workspace.xml (2133 bytes)
β”œβ”€β”€β”€README.md (64 bytes)
└───main.go (2278 bytes)
Owner
Hutiev Alexander
Currently studying in School 21 and ITMO University. C/C++/Go UNIX/Docker/Kubernetes
Hutiev Alexander
Similar Resources

Newser is a simple utility to generate a pdf with you favorite news articles

Newser is a simple utility to generate a pdf with you favorite news articles

Newser A simple utility to crawl some news sites or other resources and download content into a pdf Building Make sure you have config.yaml setup and

Nov 9, 2022

QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file

QueryCSV enables you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to a CSV file

QueryCSV enable you to load CSV files and manipulate them using SQL queries then after you finish you can export the new values to CSV file

Dec 22, 2021

🏡 Gee is tool of stdin to each files and stdout

🏡 Gee is tool of stdin to each files and stdout

Gee is tool of stdin to each files and stdout. It is similar to the tee command, but there are more functions for convenience. In addition, it was written as go. which provides output to stdout and files.

Nov 17, 2022

Golang PDF library for creating and processing PDF files (pure go)

UniPDF - PDF for Go UniDoc UniPDF is a PDF library for Go (golang) with capabilities for creating and reading, processing PDF files. The library is wr

Dec 28, 2022

Go (golang) library for reading and writing XLSX files.

XLSX Introduction xlsx is a library to simplify reading and writing the XML format used by recent version of Microsoft Excel in Go programs. Current s

Jan 5, 2023

Golang library for reading and writing Microsoft Excelβ„’ (XLSX) files.

Golang library for reading and writing Microsoft Excelβ„’ (XLSX) files.

Excelize Introduction Excelize is a library written in pure Go providing a set of functions that allow you to write to and read from XLSX / XLSM / XLT

Dec 31, 2022

Easily create & extract archives, and compress & decompress files of various formats

archiver Introducing Archiver 3.1 - a cross-platform, multi-format archive utility and Go library. A powerful and flexible library meets an elegant CL

Jan 3, 2023

Allows parsing CSV files into custom structs and implements required fields that can't be empty

Welcome to Go Custom CSV Parser πŸ‘‹ Allows parsing CSV files into custom structs and implements required fields that can't be empty 🏠 Homepage Install

Nov 9, 2021

Provide an upload endpoint that stores files on pinata and returns a json response with the uploaded file pinata url

Purpose Build a template repository to get to coding as quickly as possible, by starting from a common template which follows the guidelines here Feat

Dec 30, 2021
FSManager - Tree view Simple util to displays the directory structure of a path or of the disk in a drive graphically.

FSManager - Tree view Simple util to displays the directory structure of a path or of the disk in a drive graphically. If you don't specify a drive or

Oct 9, 2021
app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files

app-services-go-linter app-services-go-linter plugin analyze source tree of Go files and validates the availability of i18n strings in *.toml files. A

Nov 29, 2021
A Go filesystem package for working with files and directories

Stowage A Go filesystem package for working with files and directories, it features a simple API with support for the common files and directories ope

May 28, 2021
This is a tool to extract TODOs, NOTEs etc or search user provided terms from given files and/or directories.

ado This is a tool to extract TODOs, NOTEs etc or user provided terms from given files and/or directories. DEPRECIATED: My project seek has cleaner co

Aug 11, 2022
A tool for moving files into directories by file extensions
A tool for moving files into directories by file extensions

The tool for moving files into directories by file extensions Example before moving structure: moving into same extension dir result: moving into diff

Dec 6, 2021
Utility for working with files and folders stored on Google Drive

skicka Utility for working with files and folders stored on Google Drive. Note: skicka is not an official Google product! Intro skicka makes it easy t

Nov 15, 2021
Split text files into gzip files with x lines

hakgzsplit split lines of text into multiple gzip files

Jun 21, 2022
Easily create Go files from stub files

go-stubs Easily create .go files from stub files in your projects. Usage go get github.com/nwby/go-stubs Create a stub file: package stubs type {{.Mo

Jan 27, 2022
A simple utility for validating CSV columns

gompare A simple utility for validating CSV columns Building In project directly, run go build Usage ./gompare --template-file=template.csv --input-fi

Feb 3, 2022