golang-github-mitchellh-go-homedir 0.0~git20150831.0.df55a15-1 source package in Ubuntu
Changelog
golang-github-mitchellh-go-homedir (0.0~git20150831.0.df55a15-1) unstable; urgency=medium * Initial release -- Tianon Gravi <email address hidden> Tue, 06 Oct 2015 10:52:19 -0700
Upload details
- Uploaded by:
- Debian Go Packaging Team
- Uploaded to:
- Sid
- Original maintainer:
- Debian Go Packaging Team
- Architectures:
- all
- Section:
- misc
- Urgency:
- Medium Urgency
See full publishing history Publishing
Series | Published | Component | Section | |
---|---|---|---|---|
Xenial | release | universe | misc |
Downloads
File | Size | SHA-256 Checksum |
---|---|---|
golang-github-mitchellh-go-homedir_0.0~git20150831.0.df55a15-1.dsc | 2.4 KiB | 49faeeafc8d2014efd29d3356803f622a65c3849b6cbc4723a4cf68317dca670 |
golang-github-mitchellh-go-homedir_0.0~git20150831.0.df55a15.orig.tar.xz | 2.6 KiB | bfc37a648bab3de6764a2d5c637c9cb608a8d83566133f2b3bf35d048bfabaff |
golang-github-mitchellh-go-homedir_0.0~git20150831.0.df55a15-1.debian.tar.xz | 1.9 KiB | f3506c584e56cf54062d624956db979d0e5029c30a004208f1ffc49530446117 |
No changes file available.
Binary packages built by this source
- golang-github-mitchellh-go-homedir-dev: Go library for detecting and expanding the user's home directory
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.