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/pm5ahslrcvjqvv36jkjzdb0pfjpzwfy1-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxx86_64-w64-mingw32/gnu/store/njvcf3qv12ihsmi7bab27928j7pgxhqy-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxriscv64-linux-gnu/gnu/store/1qhxx97q88gry23r4zp3w81c2h54sksj-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc-linux-gnu/gnu/store/kx37x6bxv4nnvnsckpnhma7swnb3wlsg-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxpowerpc64le-linux-gnu/gnu/store/7p5rbzqlq7gpcra32wfx6xdcw7wp8wz7-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxmips64el-linux-gnu/gnu/store/iv0zj1i1jhw67yb9q6686qnbc4gyhhml-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi686-w64-mingw32/gnu/store/qpa7gl4mjmv0zjlqzmfhqa0c9xzllj0h-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxi586-pc-gnu/gnu/store/2l0fi0wmgzp0qw1vj2ah8x6c843sshfs-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxarm-linux-gnueabihf/gnu/store/j9ylr1bgqv9d29212693dhc9q93mx3j4-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
x86_64-linuxaarch64-linux-gnu/gnu/store/hm1nlpdnfyq4p74c762r647k8d3a6hl6-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
riscv64-linux/gnu/store/k2n7drh7anhwdvpm07ni36plf96i52dl-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    powerpc64le-linux/gnu/store/sr9sv921pi9vsjm287mibzkh8wqx0y6y-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
    mips64el-linux/gnu/store/g5pwmqcxcvybqipdfrkryqq5m9lhx4x6-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i686-linux/gnu/store/1n0nwrxamj0y0gg30jj3gf47ja9cs0ph-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      i586-gnu/gnu/store/c4n435g5irynhgkz6wxqacg0ixsflxja-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      armhf-linux/gnu/store/bmvbz47kzajhl43s1bir8iwznvbdqjkj-go-github-com-mitchellh-go-homedir-1.0.0-0.ae18d6b.drv
      aarch64-linux/gnu/store/zmrppzwszx6yv5slq9vmrfgll5zbf28p-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)