boot

package
v0.4.102 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2026 License: Apache-2.0 Imports: 2 Imported by: ? 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 boot runs the module assistant (`casaos module ...`) before anything else of the core is initialised.

Go initialises the packages of a program in the order of their import paths, among those whose imports are done, and this path is the first of the core's own: when the packages that the assistant needs (pkg/modulecmd and what it imports, none of which does anything when it is initialised) are done, this one is next, and the assistant runs and ends the process here, before route/v1 has started its goroutine and its timer, before route has read its API description and before service, alerts and telemetry have been set up. What is initialised first, then, is what the assistant itself imports and the standard library; the test of this package builds the core and reads the trace of its initialisation to say so.

main.go imports this package for this and nothing else; its own init keeps the dispatch as well, for a build in which this package is not imported, so that `casaos module` never falls through to starting the core.

Jump to

Keyboard shortcuts

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