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/dvdgwp2pj823fnkmbcmssa8bzha1byjx-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxx86_64-w64-mingw32/gnu/store/3vsm3mhmi4478pxgig7bxfa9j2jk4hxy-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxriscv64-linux-gnu/gnu/store/i4bzcz0dq8kzqpqksc0dqadzdwrmd1pm-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc-linux-gnu/gnu/store/xxp2khkbx2kfqzygy6s2sdalqy2wfaaa-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc64le-linux-gnu/gnu/store/671hi1c810pxi7zzh2lbc8vv7akrvxjg-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxmips64el-linux-gnu/gnu/store/8cn43bck524b1ylcbksv7yf4rnshw74y-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi686-w64-mingw32/gnu/store/ha44863av72g73n9948vnksml0c1nr8c-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi586-pc-gnu/gnu/store/rj3q8sncfhvfga445sv3rp6vrdnk6r85-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxarm-linux-gnueabihf/gnu/store/cs7paw7dy2r419nvild0hiplda9i7805-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxaarch64-linux-gnu/gnu/store/z8b4mh0sp8xffadwjcl3lpscym6q2vzx-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
riscv64-linux/gnu/store/6ysr4fihv4fz3dd9i7fzqna9gcsx405q-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    powerpc64le-linux/gnu/store/nh62jwph6ig62aig1c7lwmw2xiq8cf67-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    mips64el-linux/gnu/store/aa1fi96ry7ih5730s333vx6c63di5v1d-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i686-linux/gnu/store/i409h274p1vnairh79m62jqa7wf3wjkc-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i586-gnu/gnu/store/fwi38qsarxcq98liqj4xm2bk8dgr46n9-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      armhf-linux/gnu/store/90f0qvvzwr96f41mjv2pszxnr79hqiaq-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      aarch64-linux/gnu/store/ram1pnhhvnxp95bjds5dvhvvq4ds18kf-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)