Source File
frames_go17.go
Belonging Package
golang.org/x/tools/internal/pkgbits
// Copyright 2021 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build go1.7
// +build go1.7
package pkgbits
import
// walkFrames calls visit for each call frame represented by pcs.
//
// pcs should be a slice of PCs, as returned by runtime.Callers.
func ( []uintptr, frameVisitor) {
if len() == 0 {
return
}
:= runtime.CallersFrames()
for {
, := .Next()
(.File, .Line, .Function, .PC-.Entry)
if ! {
return
}
}
}
The pages are generated with Golds v0.4.9. (GOOS=linux GOARCH=amd64)