utils

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyToClipboard

func CopyToClipboard(text string, copyOnlyFirst bool) error

func GenerateRandom

func GenerateRandom(
	n int,
	allowLower, allowUpper, allowDigit, allowSpecial bool,
	allowedSpecial string,
) string

func PrintTree

func PrintTree(root string, prefix string, isLast bool) error

PrintTree recursively prints the directory structure in a tree-like format

func SetCmd

func SetCmd(cfg CmdConfig, args ...string) *exec.Cmd

Types

type CmdConfig added in v1.0.0

type CmdConfig struct {
	IsStdin  bool
	IsStdout bool
	IsStderr bool
	Dir      string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL