Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 311 Bytes

README.md

File metadata and controls

24 lines (18 loc) · 311 Bytes

ExpandUser.go

python os.path.expanduser equivalent in golang

Install

go get -u github.com/loynoir/ExpandUser.go

Example

package main

import (
    "fmt"
    "github.com/loynoir/ExpandUser.go"
)

func main() {
    x, _ := ExpandUser.ExpandUser("~/~/foo/bar/")
    fmt.Println(x)
}