directcall

package
v1.2.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 156 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Standard-library direct calls

This directory contains optional direct-call adapters for the standard library packages exported by ixgo/pkg. Import ixgo/pkg separately when the interpreter also needs the package exports, then import the adapters:

import _ "github.com/goplus/ixgo/directcall"

Individual adapters can be enabled instead, for example:

import _ "github.com/goplus/ixgo/directcall/strings"

The generated files are kept for Go 1.25, 1.26, and 1.27. Regenerate one version from the repository root with:

go run ./directcall/gen.go 1.25
go run ./directcall/gen.go 1.26
go run ./directcall/gen.go 1.27

The generator expects the matching toolchains at ~/golang/go1.25, ~/golang/go1.26, and ~/golang/go1.27.

Excluded packages

Direct-call adapters are intentionally not generated for log and log/slog. These packages use runtime.Caller internally to determine the source location of a log call. A direct-call adapter changes that call stack, so Llongfile and Lshortfile can report the adapter file instead of the user's source file. They therefore remain on the source implementation.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL