Source File
rangefuncconsts.go
Belonging Package
internal/abi
// Copyright 2024 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.package abitype RF_State int// These constants are shared between the compiler, which uses them for state functions// and panic indicators, and the runtime, which turns them into more meaningful strings// For best code generation, RF_DONE and RF_READY should be 0 and 1.const (RF_DONE = RF_State(iota) // body of loop has exited in a non-panic wayRF_READY // body of loop has not exited yet, is not running -- this is not a panic indexRF_PANIC // body of loop is either currently running, or has panickedRF_EXHAUSTED // iterator function return, i.e., sequence is "exhausted"RF_MISSING_PANIC = 4 // body of loop panicked but iterator function defer-recovered it away)
![]() |
The pages are generated with Golds v0.7.9-preview. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |