Files
kyle 9444a35322 p1: /v2/scrape, /v1/fetch, auth, CLI, contract tests
Single Fetcher.Fetch on the Guard that holds DenyPrefixes. skipTlsVerification
is ignored. No 502. keys add writes the secret only to --out. Release binary
has no -test-allow-prefix.
2026-09-22 21:54:01 -07:00

22 lines
853 B
Go

package unstable
import "github.com/pelletier/go-toml/v2/internal/parserbridge"
// Expose the non-AST scanners to the root toml package without committing to
// them in the public API. See internal/parserbridge for the rationale.
//
//nolint:gochecknoinits // load-time wiring of an internal bridge (see internal/parserbridge)
func init() {
parserbridge.ScanScalar = func(p any, b []byte) (kind int, raw, value, rest []byte, err error) {
k, raw, value, rest, err := p.(*Parser).scanScalar(b)
return int(k), raw, value, rest, err
}
parserbridge.ScanKey = func(p any, b []byte, dst [][]byte) (parts [][]byte, raw, rest []byte, err error) {
return p.(*Parser).scanKey(b, dst)
}
parserbridge.ScanComment = scanComment
parserbridge.ParseValue = func(p any, b []byte) (node any, rest []byte, err error) {
return p.(*Parser).parseValue(b)
}
}