utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2023 License: MIT Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseName

func BaseName(path string) string

BaseName returns the base name portion of a path.

func ExecutableDir

func ExecutableDir() (string, error)

ExecutableDir returns the directory containing current executable.

func FormatPublicType

func FormatPublicType(name string) string

FormatPublicType returns a human-readable Golang public type name from an arbitrary non-empty string.

func GetSystemDirectory

func GetSystemDirectory() (string, error)

GetSystemDirectory is not implemented on non-Windows OSes and always returns an error.

func IsImplicitRelativePath

func IsImplicitRelativePath(path string) bool

IsImplicitRelativePath tests if the path only contains a file name.

func UintPtrToString

func UintPtrToString(ptr uintptr) string

UintPtrToString converts a zero-terminated raw "const char *" to a Go string. Example:

var str := utils.UintPtrToString(uintptr(unsafe.Pointer(uint16ptr_variable)))

Types

This section is empty.

Jump to

Keyboard shortcuts

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