make linters happy
fix typos, less short and more idomatic variable names, package comments, etc.
This commit is contained in:
parent
50e8c992d1
commit
9b87c02744
12 changed files with 259 additions and 247 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue