<file_sep>I can't figure out a cross-platform solution to expand relative path (possibly a symbolic link) to its absolute path.

So this utility.

```
$ normpath ../mytoken/solar.development.json

/Users/howard/p/qtum/qtumbook/examples/mytoken/solar.development.json
```

Install:

```
go get -u github.com/hayeah/normpath
```

See: https://unix.stackexchange.com/questions/36547/how-can-i-expand-a-relative-path-at-the-command-line-with-tab-completion
<file_sep>package main

import (
	"fmt"
	"log"
	"os"
	"path/filepath"
)

func help() {
	fmt.Println(
		`Usage: normpath <path>

Expand relative path to absolute path. Resolve symbolic links.
`)

	os.Exit(1)
}

func main() {
	if len(os.Args) < 2 {
		fmt.Println("Invalid usage")
		help()
	}

	pathname := os.Args[1]

	abspath, err := filepath.Abs(pathname)
	if err != nil {
		log.Fatalln(err)
	}

	resolvedPath, err := filepath.EvalSymlinks(abspath)
	if err != nil {
		log.Fatalln(err)
	}

	fmt.Println(resolvedPath)
}
