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/d5i365ri4rj69v4fdym8fvk58n98zn63-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxx86_64-w64-mingw32/gnu/store/cwrj8vip8z0npb91ili81xnggs88bx4m-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxriscv64-linux-gnu/gnu/store/wd76s3h6z3b32wkzk790s4m9sl9q3ayc-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc-linux-gnu/gnu/store/jhqxg03kczyrnqlwkk0q0386z0lfbqgg-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc64le-linux-gnu/gnu/store/ckbgkigxr1ya6cglf7xkhbjqhs3iqfyx-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxmips64el-linux-gnu/gnu/store/sga23hs9frck200dwqqkf131hbh1ppqp-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi686-w64-mingw32/gnu/store/r0ryswszb6nfgfzi82vbgypw05qh743p-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi586-pc-gnu/gnu/store/sgrqy3r94lvsnrx9l43qwbpsnv94dn1y-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxarm-linux-gnueabihf/gnu/store/swpa4r0zh7zl4m0lfmb1i2c5qd7696n0-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxaarch64-linux-gnu/gnu/store/flgm3486y05zy91fdbv96367fql6b6ib-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
riscv64-linux/gnu/store/yj9jgryh1qnmp3jxg6yki7s8ndlaplk3-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    powerpc64le-linux/gnu/store/iwg67dzz5qq05m52k5yhyibb660nn1dk-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    mips64el-linux/gnu/store/xid59imxbf77ibr2v0jk7bg8vbs10mr9-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i686-linux/gnu/store/ld8yxmcd9w0pwpp0lbg5ssznp1gf2jnl-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i586-gnu/gnu/store/aq0ilj2p22rpff9dz1aljkly2r8zj85g-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      armhf-linux/gnu/store/83w8b454kswq7a8mng1mdj263z80yyd9-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      aarch64-linux/gnu/store/r6h3gkq16nl4z9n2ghby3kg1xag306lf-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)