dist

package
v1.3.108 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package dist pkg/hostbridge/dist/dist.go c3-vis-wasm

Package dist holds the host bridge built with TinyGo for each platform, so a browser visor can hand its user the one for their host. Only the js build embeds them. Rebuild them with `make hostbridge-dist`.

Package dist pkg/hostbridge/dist/embed_other.go c3-vis-wasm

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("hostbridge/dist: no such build")

ErrNotFound is returned for a file that is not embedded.

Functions

func Open

func Open(file string) ([]byte, error)

Open returns the executable saved as file.

Types

type Platform

type Platform struct {
	OS   string `json:"os"`
	Arch string `json:"arch"`
	// File is the name to save it under.
	File string `json:"file"`
	Size int64  `json:"size"`
}

Platform is one embedded build.

func Platforms

func Platforms() []Platform

Platforms lists the embedded builds.

Jump to

Keyboard shortcuts

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