Sybren A. Stüvel
12bc182857
In addition to logging `GOOS` and `GOARCH`, also log more info about the system: - Windows: the Windows version and edition. - Linux: distribution, distribution version, and kernel version. - macOS: just "macOS", until we know more about getting info there too.
16 lines
379 B
Go
16 lines
379 B
Go
package sysinfo
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
// CanSymlink tries to determine whether the running system can use symbolic
|
|
// links.
|
|
func CanSymlink() (bool, error) {
|
|
return canSymlink()
|
|
}
|
|
|
|
// Description returns a string that describes the current platform in more
|
|
// detail than runtime.GOOS does.
|
|
func Description() (string, error) {
|
|
return description()
|
|
}
|