Debian Codegraph @

debian/control

raw
1 Source: golang-github-mitchellh-go-homedir
2 Maintainer: Debian Go Packaging Team <[email protected]>
3 Uploaders: Tianon Gravi <[email protected]>,
4 Tim Potter <[email protected]>,
5 Anthony Fok <[email protected]>
6 Section: devel
7 Testsuite: autopkgtest-pkg-go
8 Priority: optional
9 Build-Depends: debhelper-compat (= 12),
10 dh-golang,
11 golang-any
12 Standards-Version: 4.4.0
13 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-mitchellh-go-homedir
14 Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-mitchellh-go-homedir.git
15 Homepage: https://github.com/mitchellh/go-homedir
16 XS-Go-Import-Path: github.com/mitchellh/go-homedir
17
18 Package: golang-github-mitchellh-go-homedir-dev
19 Architecture: all
20 Depends: ${misc:Depends},
21 ${shlibs:Depends}
22 Description: Go library for detecting and expanding the user's home directory
23 This is a Go library for detecting the user's home directory without the use of
24 cgo, so the library can be used in cross-compilation environments.
25 .
26 Usage is incredibly simple, just call homedir.Dir() to get the home directory
27 for a user, and homedir.Expand() to expand the ~ in a path to the home
28 directory.
29 .
30 Why not just use os/user? The built-in os/user package requires cgo on Darwin
31 systems. This means that any Go code that uses that package cannot cross
32 compile. But 99% of the time the use for os/user is just to retrieve the home
33 directory, which we can do for the current user without cgo. This library does
34 that, enabling cross-compilation.