Documentation: expand project layout to match usage (#3304)

The tree view of the project layout seemed to show that "github.com",
"cmd", and "pkg" were all in the same directory.  The usage later in the
document (and normal go layout) would have them as subdirectories.

The new tree output was generated with the below:
(cd `mktemp -d`
    mkdir -p github.com/me/foo/{cmd/foo,pkg/baz}
    touch github.com/me/foo/{cmd/foo/main,pkg/baz/bar{_test,}}.go
    tree -n --noreport github.com/me/foo
)
This commit is contained in:
Daniel Frederick Crisman 2023-03-16 15:11:06 -04:00 committed by GitHub
parent a9d699b581
commit 5b8296782b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,15 +14,14 @@ otherwise it optionally accepts a package path.
For example given this project layout: For example given this project layout:
``` ```
. github.com/me/foo
├── github.com/me/foo
├── cmd ├── cmd
└── foo    └── foo
└── main.go    └── main.go
── pkg ── pkg
└── baz └── baz
├── bar.go ├── bar.go
└── bar_test.go └── bar_test.go
``` ```
If you are in the directory `github.com/me/foo/cmd/foo` you can simply run `dlv debug` If you are in the directory `github.com/me/foo/cmd/foo` you can simply run `dlv debug`