mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
go/doc: don't ignore anonymous non-exported fields
- remove wrapper.go from testing package (not needed anymore) Fixes #1000. R=rsc, golang-dev, n13m3y3r CC=golang-dev https://golang.org/cl/5502074
This commit is contained in:
parent
74cb963225
commit
9535b86a27
6 changed files with 95 additions and 155 deletions
|
|
@ -90,7 +90,7 @@ func Short() bool {
|
|||
// If addFileLine is true, it also prefixes the string with the file and line of the call site.
|
||||
func decorate(s string, addFileLine bool) string {
|
||||
if addFileLine {
|
||||
_, file, line, ok := runtime.Caller(4) // decorate + log + public function.
|
||||
_, file, line, ok := runtime.Caller(3) // decorate + log + public function.
|
||||
if ok {
|
||||
// Truncate file name at last file name separator.
|
||||
if index := strings.LastIndex(file, "/"); index >= 0 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue