utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory() (dirPath string, err error)

func DiscardLastCharacter added in v0.1.5

func DiscardLastCharacter(s string) string

func ExpandHashtag added in v0.1.5

func ExpandHashtag(pathWithHashtag string) ([]string, error)

Function to expand the delimeter '#' to every file under that directory

Example "~/Pictures/#" -->["Pictures/img1.png","~/Pictures/img2.png","~/Pictures/img3.png"]

func ExpandHomeDirectory

func ExpandHomeDirectory(paths []string) []string

Function to expand the tilde (~) to the full home directory path @Example ~/Pictures/flowers.png --> /home/username/Pictures/flowers.png

Types

This section is empty.

Jump to

Keyboard shortcuts

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