user

package
v0.0.0-...-277eb20 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeDir

func HomeDir() (string, error)

HomeDir returns the user's homedir

Types

type HomeDirNotFoundError

type HomeDirNotFoundError struct {
	// contains filtered or unexported fields
}

HomeDirNotFoundError is an error that implements the ErrorLocalier and ErrorInput interfaces from locale/errors.go because importing locale for NewInputError creates an import cycle. Instead, return this error that looks like a LocalizedError.

func (*HomeDirNotFoundError) Error

func (e *HomeDirNotFoundError) Error() string

func (*HomeDirNotFoundError) InputError

func (e *HomeDirNotFoundError) InputError() bool

func (*HomeDirNotFoundError) LocalizedError

func (e *HomeDirNotFoundError) LocalizedError() string

func (*HomeDirNotFoundError) Unwrap

func (e *HomeDirNotFoundError) Unwrap() error

Jump to

Keyboard shortcuts

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