realpath

package
v0.0.0-...-6a41818 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 18, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

README

This file was adapted from:
https://github.com/yookoala/realpath/blob/v1.0.0/realpath.go
to use path instead of filepath and to work with afero.FS

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Realpath

func Realpath(os OS, fpath string) (string, error)

Realpath returns the real path of a given file in the os

Types

type OS

type OS interface {
	Getwd() (dir string)
	Lstat(name string) (os.FileInfo, error)
	Readlink(name string) (string, error)
}

Virtual OS interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL