Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:13.1
go
godoc-path-locations.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File godoc-path-locations.patch of Package go
diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go index 26b0b97..580d8f7 100644 --- a/src/cmd/godoc/godoc.go +++ b/src/cmd/godoc/godoc.go @@ -89,8 +89,19 @@ var ( notes = flag.String("notes", "BUG", "regular expression matching note markers to show") ) +const ( + SUSE_DOC_DIR = "/usr/share/doc/packages/go-doc/" + SUSE_SRC_DIR = "/usr/share/go" + SUSE_CONTRIB_SRC_DIR = "/usr/share/go/contrib/src/pkg/" +) + func initHandlers() { fileServer = http.FileServer(&httpFS{fs}) + + // OPENSUSE: Bind godoc & source location + fs.Bind("/doc", OS(SUSE_DOC_DIR), "/doc", bindReplace) + fs.Bind("/src", OS(SUSE_SRC_DIR), "/src", bindBefore) + cmdHandler = docServer{"/cmd/", "/src/cmd"} pkgHandler = docServer{"/pkg/", "/src/pkg"} }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor