filepath.go 235 B

12345678910111213
  1. //go:build !unix
  2. package fastabs
  3. import (
  4. "path/filepath"
  5. )
  6. // FastAbs can't be optimized on Windows because the
  7. // syscall.FullPath function takes an input.
  8. func FastAbs(path string) (string, error) {
  9. return filepath.Abs(path)
  10. }