path
Package path provides Node path module helpers using path/filepath.
import "github.com/sahilkhaire/gox/path"
Select a symbol below — each page explains what it does, shows Node.js vs Go comparisons, and includes a runnable example.
Functions
| Symbol | Node.js | Kind | Summary |
|---|---|---|---|
| Basename | path.basename(p) | func | Basename returns the last element (path.basename). |
| Dirname | path.dirname(p) | func | Dirname returns the directory (path.dirname). |
| Extname | path.extname(p) | func | Extname returns the extension including dot (path.extname). |
| IsAbs | path.isAbsolute(p) | func | IsAbs reports whether p is absolute (path.isAbsolute). |
| Join | path.join(...) | func | Join joins path segments (path.join). |
| Resolve | path.resolve(...) | func | Resolve resolves to an absolute path (path.resolve). |