pwd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 License: MIT-0 Imports: 3 Imported by: 0

Documentation

Overview

return working directory name.

SYNOPSIS

pwd [-LP]

DESCRIPTION

The pwd utility prints the absolute pathname of the current working directory to the standard output.

The options are as follows:

-L        Print the logical (including symlinks) path of the
          current directory.

-P        Print the physical path of the current directory.

SEE ALSO

https://golang.org/pkg/os/#Getwd

REFERENCES

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/pwd.html

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	L bool
	P bool
}

func (*Options) Pwd

func (opt *Options) Pwd() error

type Opts

type Opts func(*Options)

func L

func L(l bool) Opts

func P

func P(p bool) Opts

Jump to

Keyboard shortcuts

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