utils

package
v0.0.0-...-7626fc1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const OS_EXECUTABLE = OS_USER_RWX | OS_GROUP_RX | OS_OTHER_RX
View Source
const OS_GROUP_R = 0040
View Source
const OS_GROUP_RW = 0060
View Source
const OS_GROUP_RWX = 0070
View Source
const OS_GROUP_RX = 0050
View Source
const OS_GROUP_W = 0020
View Source
const OS_GROUP_X = 0010
View Source
const OS_OTHER_R = 0004
View Source
const OS_OTHER_RW = 0006
View Source
const OS_OTHER_RWX = 0007
View Source
const OS_OTHER_RX = 0005
View Source
const OS_OTHER_W = 0002
View Source
const OS_OTHER_X = 0001
View Source
const OS_USER_R = 0400
View Source
const OS_USER_RW = 0600
View Source
const OS_USER_RWX = 0700
View Source
const OS_USER_RX = 0500
View Source
const OS_USER_W = 0200
View Source
const OS_USER_X = 0100

Variables

This section is empty.

Functions

func AtoiIfNotEmpty

func AtoiIfNotEmpty(value string) (int, error)

func DoesExist

func DoesExist(path string) (bool, error)

func LocateExecutable

func LocateExecutable(callback func(string) bool, root string, isDir bool) (string, error)

func Printlnf

func Printlnf(format string, a ...any) (n int, err error)

func SelectFirstNotEmpty

func SelectFirstNotEmpty(values ...string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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