directory
Version:
v0.0.0-...-ec48b64
Opens a new window with list of versions in this module.
Published: Oct 27, 2023
License: Apache-2.0, BSD-3-Clause
Opens a new window with license information.
README
¶
go/pkgsite/source
Vendored from https://go.googlesource.com/pkgsite/+/beceacdece62d95d6dc41a9b5f09da7b2a021020/internal/source,
because the source package is internal, and there's no plan to move it out anytime soon: https://github.com/golang/go/issues/40477#issuecomment-868532845.
The entire source folder and be downloaded via:
curl -LO https://go.googlesource.com/pkgsite/+archive/beceacdece62d95d6dc41a9b5f09da7b2a021020/internal.tar.gz
Local modifications:
- Update import paths.
- Removed unused functions from pkgsite/internal/stdlib, pkgsite/internal/derrors,
pkgsite/internal/version to avoid other dependencies.
- For pkgsite/internal/source, switched to use go log package, because glog conflicts with a test
dependency that also defines the "v" flag.
- Add a SetCommit method to type ModuleInfo in ./source/source_patch.go, more rationale explained in the method's comments.
Directories
¶
Package derrors defines internal error values to categorize the different types error semantics we support.
|
Package derrors defines internal error values to categorize the different types error semantics we support. |
Package source constructs public URLs that link to the source files in a module.
|
Package source constructs public URLs that link to the source files in a module. |
Package stdlib supports special handling of the Go standard library.
|
Package stdlib supports special handling of the Go standard library. |
Package version handles version types.
|
Package version handles version types. |
Click to show internal directories.
Click to hide internal directories.