yaslama / realpath

This is a implementation of realpath() function in Go (golang). It tells the absolute path of a given relative path.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is a implementation of realpath() function in Go (golang).

If you provide it with a valid relative path / alias path, it will return you
with a string of its real absolute path in the system.

The original version is created by Taru Karttunen in golang-nuts group:
https://groups.google.com/forum/?fromgroups#!topic/golang-nuts/htns6YWMp7s

Sample usage:

  import "realpath"

  func main() {
    myRealpath, err := realpath.Realpath("/some/path")
  }

About

This is a implementation of realpath() function in Go (golang). It tells the absolute path of a given relative path.