Documentation ¶ Rendered for windows/amd64 Index ¶ func Cwstr(str string) *uint16 func LpCwstr(str string) uintptr func Utf16LE(str string) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Cwstr ¶ func Cwstr(str string) *uint16 Cwstr converts a Go string to a Windows wide string. func LpCwstr ¶ func LpCwstr(str string) uintptr LpCwstr converts a Go string to a Windows wide string pointer. func Utf16LE ¶ added in v0.13.2 func Utf16LE(str string) ([]byte, error) Utf16LE will convert a Go string to a utf16 array that is little endian byte-ordered. It will then return a Go []byte. The output can then be base64 encoded for use with PowerShell's encoded command functionality. Types ¶ This section is empty. Source Files ¶ View all Source files types_windows.go Click to show internal directories. Click to hide internal directories.