Documentation ¶
Index ¶
- Constants
- func ByteToString(byte []byte, charset charset) string
- func CopyFile(src string, dst ...string)
- func ExecCommand(commandName string, params []string, f func(str string))
- func GetDirAllFile(root string, getDir bool, justLevel1 bool) []string
- func GetFileListLeval1(root string, getDir ...bool) []string
- func IntPtr(n int) uintptr
- func KillCommand(pid int)
- func MessageBoxOK(title, text string)
- func MessageBoxYesNo(title, text string) bool
- func MessageBoxYesNoCancel(title, text string) int
- func RenameFile(old, new string)
- func StdOut(f func(str string), out ...io.Reader)
- func StrPtr(s string) uintptr
Constants ¶
View Source
const ( UTF8 = charset("UTF-8") GB18030 = charset("GB18030") )
View Source
const ( MB_OK = 0x00000000 MB_OKCANCEL = 0x00000001 MB_ABORTRETRYIGNORE = 0x00000002 MB_YESNOCANCEL = 0x00000003 MB_YESNO = 0x00000004 MB_RETRYCANCEL = 0x00000005 MB_CANCELTRYCONTINUE = 0x00000006 MB_ICONHAND = 0x00000010 MB_ICONQUESTION = 0x00000020 MB_ICONEXCLAMATION = 0x00000030 MB_ICONASTERISK = 0x00000040 MB_USERICON = 0x00000080 MB_ICONWARNING = MB_ICONEXCLAMATION MB_ICONERROR = MB_ICONHAND MB_ICONINFORMATION = MB_ICONASTERISK MB_ICONSTOP = MB_ICONHAND MB_DEFBUTTON1 = 0x00000000 MB_DEFBUTTON2 = 0x00000100 MB_DEFBUTTON3 = 0x00000200 MB_DEFBUTTON4 = 0x00000300 )
Variables ¶
This section is empty.
Functions ¶
func ExecCommand ¶
封装一个函数来执行命令
func GetDirAllFile ¶ added in v0.0.7
获取目录下所有文件
func GetFileListLeval1 ¶ added in v0.0.7
获取一级目录下的文件列表
func MessageBoxOK ¶
func MessageBoxOK(title, text string)
https://learn.microsoft.com/zh-cn/windows/win32/api/winuser/nf-winuser-messagebox#return-value
func MessageBoxYesNo ¶
func MessageBoxYesNoCancel ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.