blob: 3ff1aab093ee3712679b47d8552f09e4aa7a20d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# go doc --help
! go doc --help
stderr 'go doc'
stderr 'go doc <pkg>'
stderr 'go doc <sym>\[\.<methodOrField>\]'
stderr 'go doc \[<pkg>\.\]<sym>\[\.<methodOrField>\]'
stderr 'go doc \[<pkg>\.\]\[<sym>\.\]<methodOrField>'
stderr 'go doc <pkg> <sym>\[\.<methodOrField>\]'
# go help doc
go help doc
stdout 'go doc'
stdout 'go doc <pkg>'
stdout 'go doc <sym>\[\.<methodOrField>\]'
stdout 'go doc \[<pkg>\.\]<sym>\[\.<methodOrField>\]'
stdout 'go doc \[<pkg>\.\]\[<sym>\.\]<methodOrField>'
stdout 'go doc <pkg> <sym>\[\.<methodOrField>\]'
# go doc <pkg>
go doc p/v2
stdout .
# go doc <pkg> <sym>
go doc p/v2 Symbol
stdout .
# go doc <pkg> <sym> <method>
! go doc p/v2 Symbol Method
stderr .
# go doc <pkg>.<sym>
go doc p/v2.Symbol
stdout .
# go doc <pkg>.<sym>.<method>
go doc p/v2.Symbol.Method
stdout .
# go doc <sym>
go doc Symbol
stdout .
# go doc <sym> <method>
! go doc Symbol Method
stderr .
# go doc <sym>.<method>
go doc Symbol.Method
stdout .
# go doc <pkg>.<method>
go doc p/v2.Method
stdout .
# go doc <pkg> <method>
go doc p/v2 Method
stdout .
# go doc <method>
go doc Method
stdout .
-- go.mod --
module p/v2
go 1.13
-- p.go --
package p
type Symbol struct{}
func (Symbol) Method() error {
return nil
}
|