Language

Package: go-github-com-mitchellh-go-homedir @ 1.0.0-0.ae18d6b

Synopsis

Go library for detecting and expanding the user's home directory without cgo

Description

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 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.

Home page
https://github.com/mitchellh/go-homedir
Location
gnu/packages/golang.scm (line: 4998, column: 4)
License

Derivations

SystemTargetDerivationBuild status
x86_64-linux/gnu/store/r3ghldk7gj0x5s51fa18nviynr13hh49-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxx86_64-w64-mingw32/gnu/store/yn0kjydhrchjl5lyxmi5mprw4d80zf3n-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxriscv64-linux-gnu/gnu/store/p3jb1r5yjki3vrdi9diakx205fa9fg8k-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc-linux-gnu/gnu/store/41s0vqg80dmv71cpdz30va1iadrja8ln-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc64le-linux-gnu/gnu/store/a0qh1mk5gfj5x54xdnkdrx17mhb9ngyj-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxmips64el-linux-gnu/gnu/store/f9fcvcbzipznbfhvgnssbb8l8wkh76m1-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi686-w64-mingw32/gnu/store/wvsv89w8a979z6c4g82hvpqwx888n0bf-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi586-pc-gnu/gnu/store/4ydghnq0932bw0j58vmq0816444khdar-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxarm-linux-gnueabihf/gnu/store/p7c9bxc9nlll8kqf741dyfq4b81i0hlb-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxaarch64-linux-gnu/gnu/store/k51i5ynp0mpxakw3shjagdhdw828ykrv-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
riscv64-linux/gnu/store/gm0n3561gg51y56msxnzn7pifnqxzif2-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    powerpc64le-linux/gnu/store/3qmd8w2ng67v3pij70ai6y22sf6fq2wv-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    mips64el-linux/gnu/store/h1d8f25gj6wx57nlchr7c0n88vma5zlp-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i686-linux/gnu/store/fw67x8vypfhyk3km7j2zp5b4djwsh0z2-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i586-gnu/gnu/store/kh4jszsh7z9lj7pfdik8kqb86ac50gp4-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      armhf-linux/gnu/store/y6c65q0kdlmam5jxrpyp31sjna1xsxsx-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      aarch64-linux/gnu/store/05gb18kmxjrj7n6qj3ysd77qy6b58kd2-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv

      Lint warnings

      LinterMessageLocation
      formatting

      Look for formatting issues in the source

      line 5017 is way too long (95 characters)