go-homedir - Go library for home directory information

Property Value
Distribution NetBSD 7.1
Repository NetBSD amd64
Package filename go-homedir-1.0.0nb7.tgz
Package name go-homedir
Package version 1.0.0nb7
Package release -
Package architecture amd64
Package type tgz
Category devel
Homepage https://github.com/mitchellh/go-homedir
License mit
Maintainer -
Download size 12.20 KB
Installed size 28.44 KB
This is a Go library for detecting the user's home directory without the use of
cgo, so the library can be used in cross-compilation environments.
Usage is incredibly simple, just call homedir.Dir() to get the home directory
for a user, and homedir.Expand() to expand the ~ in a path to the home
Why not just use os/user? The built-in os/user package requires cgo on Darwin
systems. This means that any Go code that uses that package cannot cross
compile. But 99% of the time the use for os/user is just to retrieve the home
directory, which we can do for the current user without cgo. This library does
that, enabling cross-compilation.


Package Version Architecture Repository
go-homedir-1.0.0nb7.tgz 1.0.0nb7 i386 NetBSD
go-homedir - - -


Type URL
Mirror ftp.netbsd.org
Binary Package go-homedir-1.0.0nb7.tgz
Source Package go-homedir

Install Howto

Install go-homedir tgz package:

# pkg_add go-homedir

See Also

Package Description
go-hugo-0.55.6nb1.tgz A Fast & Modern Static Website Engine
go-humanize-1.0.0nb6.tgz Go library for formatters for units to human friendly sizes
go-i18n-1.10.0nb7.tgz Translate your Go program into multiple languages
go-image-20170405nb10.tgz Package image implements a basic 2-D image library
go-imaging-1.5.0nb6.tgz Simple image processing package for Go
go-immutable-radix-0.0.20170725nb10.tgz Immutable radix tree implementation in Golang
go-inflect-0.0.20170411nb10.tgz Inflect library for go
go-ini-1.19.1nb15.tgz INI file read and write functionality in Go
go-isatty-0.0.3nb10.tgz Interface to isatty (is a tty)
go-jwalterweatherman-20181028nb6.tgz Seamless printing to the terminal and io.Writer
go-kingpin.v3-unstable- Golang command line and flag parser, unstable v3
go-ldap-3.0.3nb1.tgz Basic LDAP v3 functionality for the GO programming language
go-libsass- Go wrapper for libsass, the only Sass 3.5 compiler for Go
go-locker- Golang package using named read/write locks
go-logrus-1.0.6nb7.tgz Structured, pluggable logging for Go