osT

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 ByteToString added in v0.0.4

func ByteToString(byte []byte, charset charset) string

对字符进行转码

func CopyFile added in v0.0.7

func CopyFile(src string, dst ...string)

文件复制

func ExecCommand

func ExecCommand(commandName string, params []string, f func(str string))

封装一个函数来执行命令

func GetDirAllFile added in v0.0.7

func GetDirAllFile(root string, getDir bool, justLevel1 bool) []string

获取目录下所有文件

func GetFileListLeval1 added in v0.0.7

func GetFileListLeval1(root string, getDir ...bool) []string

获取一级目录下的文件列表

func IntPtr

func IntPtr(n int) uintptr

func KillCommand

func KillCommand(pid int)

杀死进程

func MessageBoxYesNo

func MessageBoxYesNo(title, text string) bool

func MessageBoxYesNoCancel

func MessageBoxYesNoCancel(title, text string) int

func RenameFile added in v0.0.7

func RenameFile(old, new string)

文件重命名

func StdOut

func StdOut(f func(str string), out ...io.Reader)

func StrPtr

func StrPtr(s string) uintptr

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