This package provides tilde expansion functionality in Go.
import "github.com/prep/tilde"
func main() {
path, err := tilde.New("~/.bash_profile")
if err != nil {
// Handle error.
}
// path is now /home/user/.bash_profile.
}
This software is distributed under the BSD-style license found in the LICENSE file.