compat

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 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.

Documentation

Overview

Package compat records LLGo's public command contract. The Go snapshot is reviewed whenever the pinned toolchain changes; Go flags and LLGo extensions have separate records so delegation never implies native backend semantics.

Index

Constants

View Source
const TestBinaryFlags = "" /* 270-byte string literal not displayed */

TestBinaryFlags is the public Go 1.27 set accepting a test. prefix. Driver flags such as -json and -cover are deliberately excluded.

Variables

View Source
var Extensions = map[string]string{
	"n": "cmd/internal/bug", "v": "internal/monitor", "C": "cmd/internal/flags", "O": "cmd/internal/flags", "O0": "cmd/internal/flags", "O1": "cmd/internal/flags", "O2": "cmd/internal/flags", "O3": "cmd/internal/flags", "Os": "cmd/internal/flags", "Oz": "cmd/internal/flags",
	"compiler-verbose": "cmd/internal/flags", "cv": "cmd/internal/flags", "lto": "cmd/internal/flags", "lto-pass-plugin": "cmd/internal/flags", "globaldce": "cmd/internal/flags",
	"pclntab": "cmd/internal/flags", "debug-artifact": "cmd/internal/flags", "deadcodedrop": "cmd/internal/flags", "goroutine-stack-size": "cmd/internal/flags", "pthread-stack-size": "cmd/internal/flags",
	"check-linkargs": "internal/build", "check-llfiles": "internal/build", "gen-llfiles": "internal/build", "force-espclang": "internal/build",
	"debug-trace": "internal/build", "target": "internal/crosscompile", "emulator": "internal/build", "port": "internal/flash", "baudrate": "internal/monitor",
	"size": "internal/build", "size-format": "internal/build", "size-level": "internal/build", "obin": "internal/build", "ohex": "internal/build", "oimg": "internal/build", "ouf2": "internal/build", "ozip": "internal/build",
	"timeout": "internal/build", "gen": "internal/build",
	"paniconexit0": "cmd/internal/test", "testlogfile": "cmd/internal/test", "gocoverdir": "cmd/internal/test", "fuzzworker": "cmd/internal/test", "fuzzcachedir": "cmd/internal/test",
}

Extensions lists names outside the Go contract, with their actual consumers. Command-specific registration is checked separately against these names.

Functions

This section is empty.

Types

type Record

type Record struct {
	Status string
	Owner  string
	Note   string
}

func Command

func Command(name string) Record

func Flag

func Flag(command, name string) Record

Flag returns an explicit record for every public flag of a shared command. A rejected record may be an explicit unsupported diagnostic or the standard undefined-flag error; neither may successfully parse and discard a value.

type Surface

type Surface struct {
	GoVersion      string              `json:"go_version"`
	TestFlagPrefix string              `json:"test_flag_prefix"`
	Commands       map[string][]string `json:"commands"`
}

func GoSurface

func GoSurface() Surface

Jump to

Keyboard shortcuts

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