fs

package
v0.0.0-...-e9ff050 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package fs provides a utility responsible for generating a string representation of the directory tree. It ignores common patterns such as .git, .DS_Store, node_modules, and .idea.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDirectoryTree

func GetDirectoryTree(root string, opts TreeOptions) (string, error)

GetDirectoryTree returns a string representation of the directory tree

Types

type TreeOptions

type TreeOptions struct {
	IgnorePatterns []string
}

TreeOptions configures the directory tree generation

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳