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 ExpiredCheck(ti time.Time)
- func ExpiredCheckWithInfo(ti time.Time, infos [][]string)
- func FileIsExists(path string) bool
- func GetDirFile(root string, getDir bool, level int) []string
- func GetFileAbsDir(path string) string
- func GetFileDir(path string) string
- func GetFileListLeval1(root string, getDir ...bool) []string
- func GetFileName(path string) string
- func GetFileNameWithSuffix(path string) string
- func GetFileSuffix(path string) string
- func IntPtr(n int) uintptr
- func IsDir(name string) bool
- func IsFile(name string) bool
- func KillCommand(pid int)
- func MakeDirs(dir string)
- 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 ExpiredCheckWithInfo ¶ added in v0.1.9
检查是否过期(自定义消息)
func GetDirFile ¶ added in v0.1.3
获取目录下所有文件
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.