device

package
v0.0.0-...-1c5570b Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package device 提供设备ID获取和硬件指纹识别功能 参考: https://github.com/xinjiayu/LicenseManager

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDeviceID

func GetDeviceID() (string, error)

GetDeviceID 获取设备唯一UUID(参考 xinjiayu/LicenseManager 方案) 优先使用系统提供的机器UUID,如果获取不到则基于硬件信息生成UUID格式的标识符 返回值:

  • string: 设备UUID(标准UUID格式:XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX)
  • error: 获取过程中的错误

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL