Browse Source

Updated comments.

master
Benjamin Shelton 1 year ago
parent
commit
5b5c5ce892
1 changed files with 6 additions and 4 deletions
  1. +6
    -4
      path.go

+ 6
- 4
path.go View File

@@ -1,4 +1,4 @@
// Application utilities.
// Path helper and convenience utilities.

package fileutils

@@ -7,9 +7,11 @@ import (
"path/filepath"
)

// AbsPath expands and calculates some UNIX-specific path expansions. At the
// time of this writing, this is limited to ~ for the user's current HOME
// directory, which is deduced from the value of the $HOME environment variable.
// AbsPath expands and calculates some UNIX-specific path expansions while also
// returning either the absolute path as determined via `filepath.Abs` or the
// original string if Abs() returns an error. At the time of this writing, path
// expansions are limited to ~ for the user's current HOME directory, which is
// deduced from the value of the $HOME environment variable.
//
// Behavior under other operating systems may differ.
func AbsPath(s string) string {


Loading…
Cancel
Save