package device

import "github.com/bugsnag/bugsnag-go/device"

Index

Functions

func GetHostname

func GetHostname() string

GetHostname returns the hostname of the current device. Caches the hostname between calls to ensure this is performant. Returns a blank string in case that the hostname cannot be identified.

Source Files

hostname.go

Version
v1.5.2
Published
May 20, 2019
Platform
js/wasm
Imports
1 packages
Last checked
11 hours ago

Tools for package owners.