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

check

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package check decides whether a built mod may run, without a game. It is the check a publishing service runs before it offers a release to players: a WebAssembly mod must keep to the host's imports and start in the host's sandbox limits, an interpreted mod must name a runtime Modlock ships, and the settings and metrics a mod declares must be well formed.

Index

Constants

View Source
const ManifestFile = sandbox.ManifestFile

ManifestFile is the manifest's file name in a built mod.

Variables

This section is empty.

Functions

func Mod

func Mod(ctx context.Context, dist fs.FS) (*wasm.Manifest, error)

Mod checks the built mod in dist and returns its manifest.

func Module

func Module(ctx context.Context, module []byte) error

Module checks that module keeps to the host's boundary and starts within the host's memory and time limits with every host request answered empty.

func Slug

func Slug(slug string) error

Slug reports whether slug is a valid mod slug.

Types

This section is empty.

Jump to

Keyboard shortcuts

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