util

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr added in v1.5.1

func BoolPtr(value bool) *bool

func ContainsPathSeparator added in v1.5.1

func ContainsPathSeparator(value string) bool

func DerefString added in v1.5.1

func DerefString(value *string) string

func Expand

func Expand(path string) (string, error)

Expand takes a path as input and replaces ~ at the start of the path with the user's home directory. Does nothing if the path does not start with '~'.

func Home

func Home() (string, error)

func IsDirectory added in v1.5.1

func IsDirectory(path string) bool

func NormalizeSlashesLower added in v1.5.1

func NormalizeSlashesLower(value string) string

func StringPtr added in v1.5.1

func StringPtr(value string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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