Movatterモバイル変換


[0]ホーム

URL:


distro

package
v1.92.2Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2025 License:BSD-3-ClauseImports:7Imported by:54

Details

Repository

github.com/tailscale/tailscale

Links

Documentation

Overview

Package distro reports which distro we're running on.

Index

Constants

View Source
const (Debian    =Distro("debian")Arch      =Distro("arch")Synology  =Distro("synology")OpenWrt   =Distro("openwrt")NixOS     =Distro("nixos")QNAP      =Distro("qnap")Pfsense   =Distro("pfsense")OPNsense  =Distro("opnsense")TrueNAS   =Distro("truenas")Gokrazy   =Distro("gokrazy")WDMyCloud =Distro("wdmycloud")Unraid    =Distro("unraid")Alpine    =Distro("alpine")UBNT      =Distro("ubnt")// Ubiquiti NetworksJetKVM    =Distro("jetkvm"))

Variables

This section is empty.

Functions

funcDSMVersionadded inv1.28.0

func DSMVersion()int

DSMVersion reports the Synology DSM major version.

If not Synology, it reports 0.

funcIsWSLadded inv1.38.0

func IsWSL()bool

IsWSL reports whether we're running in the Windows Subsystem for Linux.

Types

typeDistro

type Distrostring

funcGet

func Get()Distro

Get returns the current distro, or the empty string if unknown.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp