win_tool

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2025 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDesktopPath

func GetDesktopPath() (string, error)

获取系统默认桌面路径

func GetDocumentsFolder

func GetDocumentsFolder() (string, error)

获取系统默认文档路径(D:\xxx\computer\Documents)

func GetHardVolumeLetters

func GetHardVolumeLetters() ([]string, error)

获取系统硬盘的盘符

func GetLocalAppDataFolder

func GetLocalAppDataFolder() (string, error)

C:\Users\xxx\AppData\Local

func GetRemoveableVolumeLetters

func GetRemoveableVolumeLetters() ([]string, error)

获取插入的U盘盘符

func GetRoamingAppDataFolder

func GetRoamingAppDataFolder() (string, error)

C:\Users\xxx\AppData\Local

func GetSystemDiskLetters

func GetSystemDiskLetters() []string

获取系统中所有盘符

func GetSystemDiskLetters2

func GetSystemDiskLetters2() ([]string, error)

获取系统中所有盘符

PS C:\Users> fsutil fsinfo drives

驱动器: C:\ D:\ E:\ F:\

func QuerySystemEnvironmentPath added in v0.3.1

func QuerySystemEnvironmentPath() ([]string, error)

func QueryUserEnvironmentPath added in v0.3.1

func QueryUserEnvironmentPath() ([]string, error)

func SelectFolderOnWindows

func SelectFolderOnWindows() (string, error)

选择文件夹(仅限windows)

func SelectMultiFilesOnWindows

func SelectMultiFilesOnWindows() ([]string, error)

返回选择的文件路径(绝对路径)

func WatchKeyboardInput

func WatchKeyboardInput(callback func(string), codeCallback func(byte)) error

监控键盘输入

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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