Help us shape the future of Go! Take the 2026 Go Developer Survey

std

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package std holds bork's standard packages, imported as "bork/name" (import "bork/http"). They are written in bork, with unsafe go where they reach Go's libraries, and embedded in the compiler.

Index

Constants

View Source
const Prefix = "bork/"

Prefix starts the import paths of standard packages.

Variables

This section is empty.

Functions

func GoModuleFiles

func GoModuleFiles(importPaths []string, user ...GoDependencyManifest) (mod, sum []byte, err error)

GoModuleFiles combines the pinned module declarations for imported standard packages and optional user manifests. Packages without go-deps.mod have no third-party Go dependencies. Go minimum version selection chooses the highest required version for each module path.

func Packages

func Packages() []string

Packages lists embedded package paths for compiler-owned code generation.

func Sources

func Sources(importPath string) (paths []string, srcs [][]byte, ok bool)

Sources returns the files of the standard package with the given import path: their paths (as positions show them) and contents.

Types

type GoDependencyManifest

type GoDependencyManifest struct {
	Name     string
	Mod, Sum []byte
}

GoDependencyManifest is a pinned module manifest and its checksums. Name identifies its source in diagnostics.

Jump to

Keyboard shortcuts

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