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: 3 modules, 10 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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