{"id":11400570,"name":"cmd/doc","ecosystem":"go","description":"Doc (usually run as go doc) accepts zero, one or two arguments.\n\nZero arguments:\n\nShow the documentation for the package in the current directory.\n\nOne argument:\n\nThe first item in this list that succeeds is the one whose documentation\nis printed. If there is a symbol but no package, the package in the current\ndirectory is chosen. However, if the argument begins with a capital\nletter it is always assumed to be a symbol in the current directory.\n\nTwo arguments:\n\nShow the documentation for the package, symbol, and method or field. The\nfirst argument must be a full package path. This is similar to the\ncommand-line usage for the godoc command.\n\nFor commands, unless the -cmd flag is present \"go doc command\"\nshows only the package-level docs for the package.\n\nThe -src flag causes doc to print the full source code for the symbol, such\nas the body of a struct, function or method.\n\nThe -all flag causes doc to print all documentation for the package and\nall its visible symbols. The argument must identify a package.\n\nFor complete documentation, run \"go help doc\".","homepage":"https://cs.opensource.google/go/go","licenses":"BSD-3-Clause","normalized_licenses":["BSD-3-Clause"],"repository_url":"https://cs.opensource.google/go/go","keywords_array":[],"namespace":"cmd","versions_count":0,"first_release_published_at":null,"latest_release_published_at":"2025-10-03T15:02:40.232Z","latest_release_number":null,"last_synced_at":"2026-08-03T12:30:28.249Z","created_at":"2025-03-03T21:52:53.566Z","updated_at":"2026-10-03T08:25:42.563Z","registry_url":"https://pkg.go.dev/cmd/doc","install_command":"go get cmd/doc","documentation_url":"https://pkg.go.dev/cmd/doc#section-documentation","metadata":{},"repo_metadata":{},"repo_metadata_updated_at":"2026-10-03T08:25:42.562Z","dependent_packages_count":0,"downloads":null,"downloads_period":null,"dependent_repos_count":0,"rankings":{"downloads":null,"dependent_repos_count":6.084953491875412,"dependent_packages_count":5.702990755173129,"stargazers_count":null,"forks_count":null,"docker_downloads_count":null,"average":5.893972123524271},"purl":"pkg:golang/cmd/doc","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/go/cmd/doc","docker_dependents_count":4272,"docker_downloads_count":2386097494,"usage_url":"https://repos.ecosyste.ms/usage/go/cmd/doc","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/go/cmd/doc/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":null,"versions_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/cmd%2Fdoc/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/cmd%2Fdoc/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/cmd%2Fdoc/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/cmd%2Fdoc/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/cmd%2Fdoc/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/cmd%2Fdoc/codemeta","maintainers":[]}