make linters happy

fix typos, less short and more idomatic variable names, package comments, etc.
This commit is contained in:
Lilian Jónsdóttir 2024-07-30 11:43:54 -07:00
parent 50e8c992d1
commit 9b87c02744
12 changed files with 259 additions and 247 deletions

View file

@ -1,3 +1,4 @@
// Package dirs provides functions sanitize directory names.
package dirs
import (
@ -15,11 +16,11 @@ var (
// UnExpand returns dir after expanding some directory shortcuts
//
// $HOME -> ~
// $HOME -> ~
//
// $PWD -> .
// $PWD -> .
//
// workdir -> /
// workdir -> /
func UnExpand(dir, workdir string) (outdir string) {
if dir != "" {
outdir = cleanDir(dir, pwd)