os

package
v0.0.0-...-1329066 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandHomeDir

func ExpandHomeDir(p string) (string, error)

ExpandHomeDir expands a leading tilde in the path to the home directory of the current user. ~someuser/tmp will not be expanded.

func FileExists

func FileExists(filePath string) bool

FileExists checks if a file exists.

func PromptPassword

func PromptPassword(passwordTitle string) (string, error)

PromptPassword prompts the user for a password with the given title

func PromptPasswords

func PromptPasswords(passwordTitles []string) ([]string, error)

PromptPasswords is a convenience function that prompts the user for multiple passwords

Types

This section is empty.

Jump to

Keyboard shortcuts

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