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/1l3mry1fiyb0m304d94d89s7addk6riq-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxx86_64-w64-mingw32/gnu/store/z6la2w604405bhbhcf1wh1msmkmx5zxy-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxriscv64-linux-gnu/gnu/store/85r1vh9nvq4ls35vqx6sb43ywpdcvxxq-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc-linux-gnu/gnu/store/q4d0zd8mpnsp4ry8ji8ihxn5ijcb5742-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc64le-linux-gnu/gnu/store/pxx2x9k3zgh4v2cvsnz4z7qscxg6kgyg-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxmips64el-linux-gnu/gnu/store/5hznrc4hqw45sp7hdwfr9nf5yccgnpzd-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi686-w64-mingw32/gnu/store/8acf5fnjhh4lailrxdkaqhc23386j9gd-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi586-pc-gnu/gnu/store/w49qz47x0fshqn242392gz01z0dy15lk-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxarm-linux-gnueabihf/gnu/store/d1g8wsz1k0kn3bj6z3bhhx6ihvrqflxk-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxaarch64-linux-gnu/gnu/store/0ncrh880i7k8350jpi4622kz813xrz58-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
riscv64-linux/gnu/store/jrp6hfskfdxhddq6qqrd6km9sfp12h6n-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    powerpc64le-linux/gnu/store/dp9hv6g5gd6s7wh04gl9sw3ha1nfs9kw-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    mips64el-linux/gnu/store/189b8ig3wvhz7wa9v17cch0fdwjrig3x-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i686-linux/gnu/store/69rlam57kky81adh96zz9s0rnhcb71rf-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i586-gnu/gnu/store/0gzrglfyr347xzl5mhhajvxaw39wzr90-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      armhf-linux/gnu/store/8wq426g4zx6jdaddi21wxxj8gnr749qn-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      aarch64-linux/gnu/store/6nxzm3wdb449jz19l357rd6a7n5a1b94-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)