pkgsite/

directory
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0, BSD-3-Clause

README

go/pkgsite/source

Vendored from https://go.googlesource.com/pkgsite/+/ef8047b111963f61f5a0b3ae5b464cdc18dc5f74/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/ef8047b111963f61f5a0b3ae5b464cdc18dc5f74/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

Path Synopsis
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.

Jump to

Keyboard shortcuts

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