go-homedir-1.0.0nb7.tgz


Advertisement

Description

go-homedir - Go library for home directory information

Property Value
Distribution NetBSD 7.1
Repository NetBSD i386
Package filename go-homedir-1.0.0nb7.tgz
Package name go-homedir
Package version 1.0.0nb7
Package release -
Package architecture i386
Package type tgz
Category devel
Homepage https://github.com/mitchellh/go-homedir
License mit
Maintainer -
Download size 11.91 KB
Installed size 25.57 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
directory.
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.

Alternatives

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

Download

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-3.0.0.0.20100811nb6.tgz 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-0.9.2.0.20180625nb6.tgz Go wrapper for libsass, the only Sass 3.5 compiler for Go
go-locker-0.0.0.20171007nb6.tgz Golang package using named read/write locks
go-logrus-1.0.6nb7.tgz Structured, pluggable logging for Go
Advertisement
Advertisement