Go version
go1.24.2
Output of go env in your module/workspace:
What did you do?
Consider the following:
package main
import (
"fmt"
)
func main() {
fmt.Println("Hi!")
}
built with go build -gcflags="all=-N -l" -ldflags=-dumpdep .
What did you see happen?
Most of the output is of the form from -> to:
e.g.
main.main -> fmt.Println
fmt.Println -> os.Stdout
fmt.Println -> go:itab.*os.File,io.Writer
fmt.Println -> fmt.Fprintln
fmt.Fprintln -> fmt.newPrinter
fmt.Fprintln -> fmt.(*pp).doPrintln
fmt.Fprintln -> fmt.(*pp).free
However some of the lines seem to be missing a from value.
-> go:info.*fmt.fmt
-> go:info.*fmt.buffer
-> go:info.fmt.buffer
-> go:info.[6]uint8
-> go:info.*fmt.pp
-> go:info.io.Writer
-> go:info.[]interface {}
-> go:info.reflect.Value
-> go:info.fmt.fmtFlags
-> go:info.fmt.Formatter
-> go:info.fmt.GoStringer
-> go:info.fmt.Stringer
-> go:info.int16
-> go:info.internal/fmtsort.SortedMap
-> go:info.internal/fmtsort.KeyValue
-> go:info.reflect.Type
What did you expect to see?
Unless I'm missing something If the parent is missing I'd expect at least a _ (
) but instead the output shows an empty string.
Go version
go1.24.2
Output of
go envin your module/workspace:GOVERSION='go1.24.2'What did you do?
Consider the following:
built with
go build -gcflags="all=-N -l" -ldflags=-dumpdep .What did you see happen?
Most of the output is of the form
from -> to:e.g.
However some of the lines seem to be missing a
fromvalue.What did you expect to see?
Unless I'm missing something If the parent is missing I'd expect at least a
_(go/src/cmd/link/internal/ld/deadcode.go
Line 370 in dad4f39