Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/doc: all identifiers for package "builtin" should be printed #12541

Closed
dsnet opened this issue Sep 8, 2015 · 2 comments
Closed

cmd/doc: all identifiers for package "builtin" should be printed #12541

dsnet opened this issue Sep 8, 2015 · 2 comments

Comments

@dsnet
Copy link
Member

dsnet commented Sep 8, 2015

Using go1.5

What I currently see:

$ go doc builtin
package builtin // import "builtin"

Package builtin provides documentation for Go's predeclared identifiers. The
items documented here are not actually in package builtin but their
descriptions here allow godoc to present documentation for the language's
special identifiers.

type ComplexType complex64
type FloatType float32
type IntegerType int
type Type int
type Type1 int

What I expect to see (the equivalent of go doc -u builtin:

$ go doc builtin 
package builtin // import "builtin"

Package builtin provides documentation for Go's predeclared identifiers. The
items documented here are not actually in package builtin but their
descriptions here allow godoc to present documentation for the language's
special identifiers.

const true = 0 == 0 ...
const iota = 0
var nil Type
func append(slice []Type, elems ...Type) []Type
func close(c chan<- Type)
func delete(m map[Type]Type1, key Type)
func panic(v interface{})
func print(args ...Type)
func println(args ...Type)
func recover() interface{}
func complex(r, i FloatType) ComplexType
func imag(c ComplexType) FloatType
func real(c ComplexType) FloatType
func make(Type, size IntegerType) Type
func new(Type) *Type
func cap(v Type) int
func copy(dst, src []Type) int
func len(v Type) int
type ComplexType complex64
type FloatType float32
type IntegerType int
type Type int
type Type1 int
type bool bool
type byte byte
type complex128 complex128
type complex64 complex64
type error interface { ... }
type float32 float32
type float64 float64
type int int
type int16 int16
type int32 int32
type int64 int64
type int8 int8
type rune rune
type string string
type uint uint
type uint16 uint16
type uint32 uint32
type uint64 uint64
type uint8 uint8
type uintptr uintptr

The web front-end must do some magic to make this work as well.

@ianlancetaylor ianlancetaylor added this to the Unplanned milestone Sep 8, 2015
@ianlancetaylor
Copy link
Contributor

CC @robpike

@robpike robpike self-assigned this Sep 9, 2015
@gopherbot
Copy link

CL https://golang.org/cl/14441 mentions this issue.

@robpike robpike closed this as completed in cf3134a Sep 9, 2015
@golang golang locked and limited conversation to collaborators Sep 8, 2016
@rsc rsc unassigned robpike Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants